Module: VScripts
- Defined in:
- lib/vscripts.rb,
lib/vscripts/aws.rb,
lib/vscripts/util.rb,
lib/vscripts/config.rb,
lib/vscripts/aws/ec2.rb,
lib/vscripts/version.rb,
lib/vscripts/commands.rb,
lib/vscripts/aws/metadata.rb,
lib/vscripts/command_line.rb,
lib/vscripts/commands/identify.rb,
lib/vscripts/util/local_system.rb,
lib/vscripts/commands/tags2facts.rb
Overview
Main VScripts module
Defined Under Namespace
Modules: AWS, Commands, Util, VERSION Classes: CommandLine, Config
Class Method Summary collapse
-
.cli ⇒ Object
Reads the command line arguments.
-
.config ⇒ Object
Reads the configuration files.
-
.run ⇒ Object
Reads the arguments and runs the given command.
Class Method Details
.cli ⇒ Object
Reads the command line arguments
8 9 10 |
# File 'lib/vscripts.rb', line 8 def self.cli @cli ||= CommandLine.new # Parses command line end |
.config ⇒ Object
Reads the configuration files
13 14 15 |
# File 'lib/vscripts.rb', line 13 def self.config @config ||= VScripts::Config.new(cli.global.config) # Parses configuration end |
.run ⇒ Object
Reads the arguments and runs the given command
18 19 20 |
# File 'lib/vscripts.rb', line 18 def self.run VScripts::Commands.const_get(cli.command).new(cli.).execute end |