Class: Buildkiq::Cli
- Inherits:
-
Thor
- Object
- Thor
- Buildkiq::Cli
- Defined in:
- lib/buildkiq/cli.rb
Instance Method Summary collapse
Instance Method Details
#run_builds ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/buildkiq/cli.rb', line 16 def run_builds logger = Logger.new(STDOUT) jobs = Buildkiq.run(project: [:project], jobs: [:builds_environments].map {|job| {environments: parse_environments_text(job)} }, default_environments: parse_environments_text([:environments]), source_version: [:source_version], build_cmd: [:command], logger: logger) jobs.each {|job| logger.info(job.build_url) } end |
#version ⇒ Object
32 33 34 |
# File 'lib/buildkiq/cli.rb', line 32 def version say "Version: #{Buildkiq::VERSION}" end |