Class: Sfctl::Commands::Time::Connections

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

Defined Under Namespace

Classes: Add, Get

Instance Method Summary collapse

Instance Method Details

#addObject



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

def add(*)
  if options[:help]
    invoke :help, ['add']
  else
    require_relative 'connections/add'
    Sfctl::Commands::Time::Connections::Add.new(options).execute
  end
end

#getObject



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

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