Class: Ploy::Command::Publish

Inherits:
Base
  • Object
show all
Defined in:
lib/ploy/command/publish.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/ploy/command/publish.rb', line 13

def help
  return "usage: ploy publish [config.yml]\n\nExamples:\n\n  $ ploy publish\n  $ ploy publish something.yml\n\nConfig Example:\n\n    ---\n    bucket: bucketname\n    deploy_name: some-project\n    dist_dir: spec/resources/dist\n    prep_cmd: lineman build\n    prefix: /usr/local/someproject\n    upstart_files:\n     - spec/resources/conf/some-project-initfile\n\nSummary:\n\n  The publish command takes a config YAML file as input, and uses that to construct a\n  debian package file and push it into a particular location in S3\n\n"
end

#run(argv) ⇒ Object



7
8
9
10
11
# File 'lib/ploy/command/publish.rb', line 7

def run(argv)
  Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
  puts "ploy publish ok"
  return true
end