Class: Sif::Loader

Inherits:
Thor
  • Object
show all
Defined in:
lib/sif.rb

Direct Known Subclasses

BuzzLoader, Channel, System

Constant Summary collapse

@@config_file =
'.config'
@@post_config =
nil

Instance Method Summary collapse

Constructor Details

#initialize(args = [], options = {}, config = {}) ⇒ Loader

Returns a new instance of Loader.



7
8
9
10
11
12
13
14
15
16
# File 'lib/sif.rb', line 7

def initialize(args=[], options={}, config={})
    super
    if (options[0] == '--version')
      version = Gem.loaded_specs[@@gem_name].version
      rel_date = Gem.loaded_specs[@@gem_name].date.strftime("%A %d %B %Y")
        puts "#{@@gem_name } version #{version} (released #{rel_date})"
        exit 0
      end
      load_configuration
end