Sha256: 3c35ce737060cd9e6c7c1f618ddafdd083cdea68f8f0b9b2bf810b09cc2eeb1e

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 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.strip
    OpenSource.logger.info("Enter email address: ")
    email = gets.chomp.strip

    { 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.1.2 lib/open_source.rb