Sha256: d5c01ae178ce23872fe63e32801ef38a14ff41817526d3a3a057f62664998990
Contents?: true
Size: 861 Bytes
Versions: 1
Compression:
Stored size: 861 Bytes
Contents
require 'open_source/version' require 'open_source/error' require 'open_source/utilities/logging' require 'open_source/license/owner' require 'open_source/license/generator' module OpenSource extend Utilities::Logging SUPPORTED_LICENSES = Dir.entries(File.expand_path('../open_source/license/templates', __FILE__)).map do |filename| File.basename(filename, '.erb') if !['.', '..'].include?(filename) end.compact CONFIG_PATH = File.expand_path('~/.osrc') def self.request_owner_credentials OpenSource.logger.info("Enter full name: ") name = gets.chomp OpenSource.logger.info("Enter email address: ") email = gets.chomp { name: name, email: email } end def self.setup_owner_credentials owner_credentials = request_owner_credentials owner = License::Owner.new owner.credentials = owner_credentials end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opensource-1.0.0 | lib/open_source.rb |