Sha256: 810507010e1d45f323e77419817d0918daaa546d7bca4f9d10a731ea1ebd8b8a

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

module Divvy
  module Plugins
    module Rails
      def set_rails_env(env, file = '~/.profile')
        run("grep -q \"export RAILS_ENV=production\" #{file} || echo \"export RAILS_ENV=#{env}\" >> #{file}")
      end
    end
  end
end

Divvy.register_plugin(Divvy::Plugins::Rails)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
michaeldwan-divvy-0.1.2 lib/divvy/plugins/rails.rb
michaeldwan-divvy-0.1.5 lib/divvy/plugins/rails.rb