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-0.8.6.1 lib/generators/cantango/license_base.rb
cantango-0.8.6 lib/generators/cantango/license_base.rb
cantango-0.8.5.1 lib/generators/cantango/license_base.rb