Class: Gitabu::Run
- Inherits:
-
Object
- Object
- Gitabu::Run
- Defined in:
- lib/gitabu/run.rb
Overview
Run class to introduce generated classes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Run
constructor
A new instance of Run.
- #save ⇒ Object
Constructor Details
#initialize ⇒ Run
13 |
# File 'lib/gitabu/run.rb', line 13 def initialize; end |
Class Method Details
.save ⇒ Object
9 10 11 |
# File 'lib/gitabu/run.rb', line 9 def self.save new.save end |
Instance Method Details
#save ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/gitabu/run.rb', line 15 def save hash.each do |api_module| link = api_module[:link] name = api_module[:name] version = api_module[:version] Gitabu::Generator.generate(link: link, name: name, version: version) end end |