Module: VScripts

Defined in:
lib/vscripts.rb,
lib/vscripts/aws.rb,
lib/vscripts/util.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 Classes: CommandLine

Constant Summary collapse

VERSION =

Returns the version number.

Returns:

  • (String)

    the version number

File.read(File.expand_path('../../../VERSION', __FILE__)).strip
VERSION_C =

Returns the copyrighted version number.

Returns:

  • (String)

    the copyrighted version number

"VScripts #{VERSION} (c) #{Time.new.year} Vlad Ghinea"

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object

Reads the arguments and runs the given command



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