Class: Sfctl::Commands::Time

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

Defined Under Namespace

Classes: Connections, Init, Providers, Sync

Instance Method Summary collapse

Instance Method Details

#initObject



38
39
40
41
42
43
44
45
# File 'lib/sfctl/commands/time.rb', line 38

def init(*)
  if options[:help]
    invoke :help, ['init']
  else
    require_relative 'time/init'
    Sfctl::Commands::Time::Init.new(options).execute
  end
end

#syncObject



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

def sync(*)
  if options[:help]
    invoke :help, ['sync']
  else
    require_relative 'time/sync'
    Sfctl::Commands::Time::Sync.new(options).execute
  end
end