Class: Rexer::Commands::State

Inherits:
Object
  • Object
show all
Defined in:
lib/rexer/commands/state.rb

Instance Method Summary collapse

Constructor Details

#initializeState

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

#callObject



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