Class: Shipit::Repository
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shipit::Repository
- Defined in:
- lib/shipit/repository.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#command ⇒ Object
TODO: Make configurable.
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
#command ⇒ Object
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 |