Class: Opensource::License
- Inherits:
-
Object
- Object
- Opensource::License
- Defined in:
- lib/opensource/license.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ License
constructor
A new instance of License.
- #process ⇒ Object
Constructor Details
#initialize(options) ⇒ License
Returns a new instance of License.
5 6 7 8 9 10 |
# File 'lib/opensource/license.rb', line 5 def initialize() = @user = Owner.get_credentials @user['escaped_email'] = "<#{@user['email']}>" @license = ERB.new(File.read(File.("./templates/#{@options[:license]}.erb"))).result(binding) end |
Instance Method Details
#process ⇒ Object
12 13 14 15 |
# File 'lib/opensource/license.rb', line 12 def process generate append if [:append] end |