Class: Ufo::CLI::Opts
- Inherits:
-
Object
- Object
- Ufo::CLI::Opts
- Defined in:
- lib/ufo/cli/opts.rb
Instance Method Summary collapse
- #docker ⇒ Object
-
#initialize(cli) ⇒ Opts
constructor
A new instance of Opts.
- #runtime_options ⇒ Object
- #yes ⇒ Object
Constructor Details
#initialize(cli) ⇒ Opts
Returns a new instance of Opts.
3 4 5 |
# File 'lib/ufo/cli/opts.rb', line 3 def initialize(cli) @cli = cli end |
Instance Method Details
#docker ⇒ Object
13 14 15 16 17 |
# File 'lib/ufo/cli/opts.rb', line 13 def docker with_cli_scope do option :docker, type: :boolean, default: true, desc: "Skip docker build" end end |
#runtime_options ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/ufo/cli/opts.rb', line 20 def with_cli_scope do option :force, :type => :boolean, :aliases => "-f", :group => :runtime, :desc => "Overwrite files that already exist" option :skip, :type => :boolean, :aliases => "-s", :group => :runtime, :desc => "Skip files that already exist" end end |
#yes ⇒ Object
7 8 9 10 11 |
# File 'lib/ufo/cli/opts.rb', line 7 def yes with_cli_scope do option :yes, aliases: :y, type: :boolean, desc: "Bypass are you sure prompt" end end |