Top Level Namespace

Defined Under Namespace

Modules: Escualo

Instance Method Summary collapse

Instance Method Details

#check_created(kind, name) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/commands/artifact.rb', line 27

def check_created(kind, name)
  if Escualo::Artifact.present?(ssh, name)
    say "#{kind.titleize} #{name} created successfully"
    say "Now you can deploy this #{kind}"
  else
    abort "Failed to create artifact #{name}"
  end
end

#parse_args_variables(args) ⇒ Object



10
11
12
# File 'lib/commands/env.rb', line 10

def parse_args_variables(args)
  args.map { |it| it.split('=') }.to_h
end

#ssh_session_optionsObject



36
37
38
39
40
41
# File 'lib/commands/globals.rb', line 36

def ssh_session_options
  $ssh_options.merge(
      username: $username,
      hostname: $hostname,
      local: !$ssh_remote).compact
end

#timeout(*args, &block) ⇒ Object



3
4
5
# File 'lib/escualo.rb', line 3

def timeout(*args, &block)
  Timeout.timeout(*args, &block)
end