Module: VScripts
- Defined in:
- lib/vscripts.rb,
lib/vscripts/aws.rb,
lib/vscripts/aws/ec2.rb,
lib/vscripts/command.rb,
lib/vscripts/version.rb,
lib/vscripts/aws/metadata.rb,
lib/vscripts/command_line.rb,
lib/vscripts/util/local_system.rb,
lib/vscripts/commands/tags2facts.rb
Overview
Version number
Defined Under Namespace
Modules: AWS, Commands, Util Classes: Command, CommandLine
Constant Summary collapse
- VERSION =
File.read(File.('../../../VERSION', __FILE__)).strip
- VERSION_C =
"VScripts #{VERSION} (c) #{Time.new.year} Vlad Ghinea"
Class Method Summary collapse
-
.run(argv) ⇒ Object
Gets the command name from command line and calls the right class.
Class Method Details
.run(argv) ⇒ Object
Gets the command name from command line and calls the right class.
7 8 9 10 11 |
# File 'lib/vscripts.rb', line 7 def self.run(argv) cli = CommandLine.new(argv) command = VScripts::Commands.const_get(cli.command).new(cli.arguments) command.execute end |