Class: Rexer::Commands::State
- Inherits:
-
Object
- Object
- Rexer::Commands::State
- Defined in:
- lib/rexer/commands/state.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
4 5 6 |
# File 'lib/rexer/commands/state.rb', line 4 def initialize @lock_definition = Definition::Lock.load_data end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/rexer/commands/state.rb', line 8 def call return if no_lock_file_found puts "Rexer: #{lock_definition.version}" puts "Env: #{lock_definition.env}" print_themes print_plugins end |