class Dokku::Command::Create

Public Class Methods

add_git_remote() click to toggle source
# File lib/dokku/command/create.rb, line 17
def self.add_git_remote
  `git remote add dokku #{git_url}`
end
git_url() click to toggle source
# File lib/dokku/command/create.rb, line 13
def self.git_url
  "git@#{@cloud}:#{@app}"
end
run(args) click to toggle source
Calls superclass method Dokku::Command::Base::run
# File lib/dokku/command/create.rb, line 4
def self.run(args)
  super
  
  @cloud = args.shift.strip #rescue Dokku::Command.run("help")
  @app = args.shift.strip #rescue Dokku::Command.run("help")
  
  add_git_remote
end