Module: Deploio::SharedOptions
- Included in:
- CLI, Commands::Apps, Commands::Auth, Commands::Builds, Commands::Orgs, Commands::PostgreSQL, Commands::PostgreSQLBackups, Commands::Projects, Commands::Services
- Defined in:
- lib/deploio/shared_options.rb
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 |