Module: Deploio::SharedOptions

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/deploio/shared_options.rb', line 7

def self.included(base)
  base.class_option :app, aliases: "-a", type: :string, desc: "App in <project>-<app> format"
  base.class_option :org, aliases: "-o", type: :string, desc: "Organization"
  base.class_option :dry_run, type: :boolean, desc: "Print commands without executing"
  base.class_option :no_color, type: :boolean, desc: "Disable colored output"

  base.define_singleton_method(:exit_on_failure?) { true }
end