Class: Sfctl::Commands::Time::Providers

Inherits:
Thor
  • Object
show all
Defined in:
lib/sfctl/commands/time/providers.rb,
lib/sfctl/commands/time/providers/get.rb,
lib/sfctl/commands/time/providers/set.rb,
lib/sfctl/commands/time/providers/unset.rb

Defined Under Namespace

Classes: Get, Set, Unset

Instance Method Summary collapse

Instance Method Details

#getObject



33
34
35
36
37
38
39
40
# File 'lib/sfctl/commands/time/providers.rb', line 33

def get(*)
  if options[:help]
    invoke :help, ['get']
  else
    require_relative 'providers/get'
    Sfctl::Commands::Time::Providers::Get.new(options).execute
  end
end

#setObject



11
12
13
14
15
16
17
18
# File 'lib/sfctl/commands/time/providers.rb', line 11

def set(*)
  if options[:help]
    invoke :help, ['set']
  else
    require_relative 'providers/set'
    Sfctl::Commands::Time::Providers::Set.new(options).execute
  end
end

#unsetObject



22
23
24
25
26
27
28
29
# File 'lib/sfctl/commands/time/providers.rb', line 22

def unset(*)
  if options[:help]
    invoke :help, ['unset']
  else
    require_relative 'providers/unset'
    Sfctl::Commands::Time::Providers::Unset.new(options).execute
  end
end