lib/termvana/app/actions/websocket_action.rb in termvana-0.2.0.beta2 vs lib/termvana/app/actions/websocket_action.rb in termvana-0.2.0.beta3

- old
+ new

@@ -9,9 +9,13 @@ attr_accessor :environment def opened_conn @environment = Termvana::Environment.new(:env => {"HOME" => ENV['HOME']}) + # Setup + Dir.chdir(@environment.fullpath(@environment.cwd)) + @environment.env["PWD"] = @environment.cwd = Dir.pwd + @environment.messenger do |message| render message.to_s end render Termvana::Response.new(:message => "Welcome to Nirvana. Websocket connected.", :type => :on_connect).to_s # resulvt = Termvana::Runner.run ARGV