Class: Gitabu::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/run.rb

Overview

Run class to introduce generated classes.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRun

Returns a new instance of Run.



13
# File 'lib/gitabu/run.rb', line 13

def initialize; end

Class Method Details

.saveObject



9
10
11
# File 'lib/gitabu/run.rb', line 9

def self.save
  new.save
end

Instance Method Details

#saveObject



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