Sha256: da54bd6480b81cf3b1dc97c7609f86b7d5041e69275896bc179789d193a9d7d5

Contents?: true

Size: 503 Bytes

Versions: 15

Compression:

Stored size: 503 Bytes

Contents

module ORS::Commands

  class Setup < Base

    def execute
      info "setting up #{name} #{environment}..."

      execute_in_parallel(all_servers) {|server| setup_repo server }
      execute_in_parallel(ruby_servers) {|server| setup_ruby server }

      execute_command migration_server, %(source ~/.rvm/scripts/rvm),
                                        %(cd #{deploy_directory}),
                                        %(RAILS_ENV=#{environment} bundle exec rake db:create)
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ors-0.1.8 lib/ors/commands/setup.rb
ors-0.1.7 lib/ors/commands/setup.rb
ors-0.1.5 lib/ors/commands/setup.rb
ors-0.1.4 lib/ors/commands/setup.rb
ors-0.1.3 lib/ors/commands/setup.rb
ors-0.1.2 lib/ors/commands/setup.rb
ors-0.1.1 lib/ors/commands/setup.rb
ors-0.1.0 lib/ors/commands/setup.rb
ors-0.0.9 lib/ors/commands/setup.rb
ors-0.0.8 lib/ors/commands/setup.rb
ors-0.0.7 lib/ors/commands/setup.rb
ors-0.0.6 lib/ors/commands/setup.rb
ors-0.0.5 lib/ors/commands/setup.rb
ors-0.0.4 lib/ors/commands/setup.rb
ors-0.0.3 lib/ors/commands/setup.rb