Module: Cantango::Generators::LicenseBase

Included in:
AccountPermitGenerator, LicenseGenerator, RolePermitGenerator, UserPermitGenerator
Defined in:
lib/generators/cantango/license_base.rb

Instance Method Summary collapse

Instance Method Details

#license_logicObject



8
9
10
11
12
# File 'lib/generators/cantango/license_base.rb', line 8

def license_logic
  return ' # use any licenses here' if licenses.empty?
  ls = licenses.map{|c| ":#{c}"}.join(", ")
  "licenses #{ls}"
end

#licensesObject



4
5
6
# File 'lib/generators/cantango/license_base.rb', line 4

def licenses
  options[:licenses]
end