Class: Bookbinder::Commands::PushToProd

Inherits:
BookbinderCommand show all
Extended by:
Naming
Defined in:
lib/bookbinder/commands/push_to_prod.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Naming

command_name

Methods inherited from BookbinderCommand

#initialize

Constructor Details

This class inherits a constructor from Bookbinder::Commands::BookbinderCommand

Class Method Details

.usageObject



10
11
12
# File 'lib/bookbinder/commands/push_to_prod.rb', line 10

def self.usage
  "push_to_prod [build_#] \t \t \t Push latest or <build_#> from your S3 bucket to the production host specified in credentials.yml"
end

Instance Method Details

#run(arguments) ⇒ Object



14
15
16
17
# File 'lib/bookbinder/commands/push_to_prod.rb', line 14

def run(arguments)
  Distributor.build(@logger, options(arguments)).distribute
  0
end