Module: LockJar::CLI::ClassMethods

Included in:
LockJar::CLI
Defined in:
lib/lock_jar/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate_jarfile_optionObject


30
31
32
33
34
35
36
37
# File 'lib/lock_jar/cli.rb', line 30

def generate_jarfile_option
  method_option(
    :jarfile,
    aliases: '-j',
    default: 'Jarfile',
    desc: 'Path to Jarfile'
  )
end

#generate_lockfile_optionObject


11
12
13
14
15
16
17
18
# File 'lib/lock_jar/cli.rb', line 11

def generate_lockfile_option
  method_option(
    :lockfile,
    aliases: '-l',
    default: 'Jarfile.lock',
    desc: 'Path to Jarfile.lock'
  )
end

#generate_scopes_optionObject


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

def generate_scopes_option
  method_option(
    :scopes,
    aliases: '-s',
    default: ['default'],
    desc: 'Scopes to install from Jarfile.lock',
    type: :array
  )
end

#verbose_optionObject


39
40
41
42
43
44
45
46
# File 'lib/lock_jar/cli.rb', line 39

def verbose_option
  method_option(
    :verbose,
    aliases: '-v',
    type: :boolean,
    desc: 'Verbose output'
  )
end