Class: Ploy::Command::Build
Instance Method Summary collapse
Instance Method Details
#help ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ploy/command/build.rb', line 16 def help return "usage: ploy build [config.yml]\n\nExamples:\n\n $ ploy build\n $ ploy build 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\nBuild a deb file.\n\n" end |
#run(argv) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/ploy/command/build.rb', line 7 def run(argv) config_source = argv.shift || '.ploy-publisher.yml' Ploy::LocalPackage::Config.load(config_source).each do |config| path = config.builder.build_deb puts "ploy build deb: #{path}" end return true end |