Sha256: afa194df198a1e0283dd54b5aa2ce9bfe86d34f689fdc30647b395a363aab1cd

Contents?: true

Size: 304 Bytes

Versions: 23

Compression:

Stored size: 304 Bytes

Contents

module Cantango
  module Generators
    module LicenseBase
      def licenses
        options[:licenses]
      end

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

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
cantango-permits-0.1.1 lib/generators/cantango/license_base.rb
cantango-roles-0.1.0 lib/generators/cantango/license_base.rb
cantango-0.9.4.7 lib/generators/cantango/license_base.rb
cantango-0.9.4.6 lib/generators/cantango/license_base.rb
cantango-0.9.4.5 lib/generators/cantango/license_base.rb
cantango-0.9.4.3 lib/generators/cantango/license_base.rb
cantango-0.9.4.2 lib/generators/cantango/license_base.rb
cantango-0.9.4.1 lib/generators/cantango/license_base.rb
cantango-0.9.4 lib/generators/cantango/license_base.rb
cantango-0.9.3.2 lib/generators/cantango/license_base.rb
cantango-0.8.9.5 lib/generators/cantango/license_base.rb
cantango-0.8.9.4 lib/generators/cantango/license_base.rb
cantango-0.8.9.3 lib/generators/cantango/license_base.rb
cantango-0.8.9.2 lib/generators/cantango/license_base.rb
cantango-0.8.9.1 lib/generators/cantango/license_base.rb
cantango-0.8.9 lib/generators/cantango/license_base.rb
cantango-0.8.8.1 lib/generators/cantango/license_base.rb
cantango-0.8.8 lib/generators/cantango/license_base.rb
cantango-0.8.7 lib/generators/cantango/license_base.rb
cantango-0.8.6.2 lib/generators/cantango/license_base.rb