Class: Sif::Loader
- Inherits:
-
Thor
- Object
- Thor
- Sif::Loader
- Defined in:
- lib/sif.rb
Direct Known Subclasses
Constant Summary collapse
- @@config_file =
'.config'- @@post_config =
nil
Instance Method Summary collapse
-
#initialize(args = [], options = {}, config = {}) ⇒ Loader
constructor
A new instance of Loader.
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=[], ={}, config={}) super if ([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 |