Object
This class represents a session within tmux
Initialize a new tmux session
@param options [Hash] the options, mostly passed by the CLI @param attrs [Hash] the session data from the layout file
# File lib/teamocil/layout/session.rb, line 11 def initialize(options, attrs={}) raise Teamocil::Error::LayoutError.new("You must specify a `windows` or `session` key for your layout.") unless attrs["windows"] @name = attrs["name"] || "teamocil-session-#{rand(10000) + 1}" @windows = attrs["windows"].each_with_index.map { |window, window_index| Window.new(self, window_index, window) } @options = options end
Generated with the Darkfish Rdoc Generator 2.