Class: Ufo::CLI::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/ufo/cli/opts.rb

Instance Method Summary collapse

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

#dockerObject



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_optionsObject



20
21
22
23
24
25
26
27
28
# File 'lib/ufo/cli/opts.rb', line 20

def runtime_options
  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

#yesObject



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