Method: CollinsShell::Console::Filesystem#push
- Defined in:
- lib/collins_shell/console/filesystem.rb
#push(ctxt) ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/collins_shell/console/filesystem.rb', line 37 def push ctxt stk = @stack.dup stk << ctxt asset = resolve_location stk if asset? and asset then raise StandardError.new("Can not nest assets in assets") end opts = @options.merge(:stack => stk, :console_asset => asset) CollinsShell::Console::Filesystem.new(opts) end |