Class: Shipit::Repository

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/shipit/repository.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.setup(params) ⇒ Object



5
6
7
8
9
# File 'lib/shipit/repository.rb', line 5

def self.setup(params)
  uri  = "[email protected]:#{params[:repo]}"
  name = params[:name]
  new(:uri => uri, :name => name).tap { |r| r.save }
end

Instance Method Details

#commandObject

TODO: Make configurable



12
13
14
# File 'lib/shipit/repository.rb', line 12

def command
  "bundle install --path vendor/gems --binstubs; bundle exec rake {{env}} deploy"
end