Class: Delinquo::CLI
- Inherits:
-
Thor
- Object
- Thor
- Delinquo::CLI
- Defined in:
- lib/delinquo/cli.rb
Instance Method Summary collapse
Instance Method Details
#post ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/delinquo/cli.rb', line 13 def post connection = Delinquo::AuthenticatedConnection.new([:cert]) if connection.project([:project]).code != 200 puts "ERROR: Project not found with name '#{[:project]}'".colorize(:red) return end connection.add_run([:project], [:runner], [:directory]) end |