Class: Capricorn::CLI::Builder

Inherits:
Capricorn::CLI show all
Includes:
Helpers
Defined in:
lib/capricorn-client/cli/builder.rb

Constant Summary

Constants included from Helpers

Helpers::DEFAULT_CONFIG

Instance Method Summary collapse

Methods included from Helpers

#application, #application_ids, #application_info, #applications, #client, #cluster, #config, #environment, #halt, #info, #local_config, #machine, #machines, #node, #nodes

Methods inherited from Capricorn::CLI

banner, #help, #method_missing, start

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Capricorn::CLI

Instance Method Details

#currentObject



7
8
9
# File 'lib/capricorn-client/cli/builder.rb', line 7

def current
  system("rake build")
end

#majorObject



24
25
26
27
# File 'lib/capricorn-client/cli/builder.rb', line 24

def major
  check_clean_stage
  bump_version(:major)
end

#minorObject



18
19
20
21
# File 'lib/capricorn-client/cli/builder.rb', line 18

def minor
  check_clean_stage
  bump_version(:minor)
end

#patchObject



12
13
14
15
# File 'lib/capricorn-client/cli/builder.rb', line 12

def patch
  check_clean_stage
  bump_version(:patch)
end