lib/salted-rails/config.rb in salted-rails-0.0.8 vs lib/salted-rails/config.rb in salted-rails-0.0.9

- old
+ new

@@ -51,11 +51,16 @@ @admin_password = nil @staging_password = nil @private_key_path = nil @mirror = nil @memory = nil - @ports = [ 80, 443, 880, 3000 ] + + # app in production mode: 80, 443 + # admin: 880 + # app in dev mode: 3000 + # gem server: 8808 + @ports = [ 80, 443, 880, 3000, 8808 ] @mapped_ports = { } @sync_vagrant = nil @box = nil @ca_path = nil @region = nil @@ -163,10 +168,10 @@ def normalize @versions['mysql'] ||= '5.5' if @roles.include?('mysql') @versions['teamcity'] ||= '8.0.4' if @roles.include?('teamcity') @versions['rubymine'] ||= '5.4.3' if @roles.include?('rubymine') - @roles << 'gui' if @roles.include?('rubymine') and not @roles.include?('gui') + @roles << 'gui' if @roles.include?('rubymine') and not gui? %w{ ruby php java }.each do |lang| version = File.open(@project_root + ".#{lang}-version", 'r') do |f_in| f_in.gets.gsub(/\s/,'') end rescue nil