Class: OpenSource::License

Inherits:
Object
  • Object
show all
Defined in:
lib/open_source/license.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ License

Returns a new instance of License.



5
6
7
8
9
# File 'lib/open_source/license.rb', line 5

def initialize(options)
  @options = options
  @user = Owner.get_credentials
  @license = ERB.new(File.read("#{File.expand_path("../../../templates", __FILE__)}/#{@options[:license]}.erb")).result(binding)
end

Instance Method Details

#processObject



11
12
13
14
# File 'lib/open_source/license.rb', line 11

def process
  generate
  append if @options[:append]
end