Class: Delinquo::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/delinquo/cli.rb

Instance Method Summary collapse

Instance Method Details

#postObject



13
14
15
16
17
18
19
20
21
# File 'lib/delinquo/cli.rb', line 13

def post
  connection = Delinquo::AuthenticatedConnection.new(options[:cert])

  if connection.project(options[:project]).code != 200
    puts "ERROR: Project not found with name '#{options[:project]}'".colorize(:red)
    return
  end
  connection.add_run(options[:project], options[:runner], options[:directory])
end