Class: InteractiveS3::Commands::InternalCommand::Pwd

Inherits:
Base
  • Object
show all
Defined in:
lib/interactive_s3/commands/internal_command.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #name, #s3, #state

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from InteractiveS3::Commands::Base

Instance Method Details

#executeObject



42
43
44
# File 'lib/interactive_s3/commands/internal_command.rb', line 42

def execute
  puts s3.root? ? '/' : s3.current_path
end