Module: OpenSource
- Extended by:
- Utilities::Logging
- Defined in:
- lib/open_source.rb,
lib/open_source/error.rb,
lib/open_source/version.rb,
lib/open_source/license/owner.rb,
lib/open_source/license/generator.rb,
lib/open_source/utilities/logging.rb
Defined Under Namespace
Modules: Error, License, Utilities
Constant Summary
collapse
- 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')
- VERSION =
'1.1.2'
Class Method Summary
collapse
logger
Class Method Details
.request_owner_credentials ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/open_source.rb', line 16
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
|
.setup_owner_credentials ⇒ Object
25
26
27
28
29
|
# File 'lib/open_source.rb', line 25
def self.setup_owner_credentials
owner_credentials = request_owner_credentials
owner = License::Owner.new
owner.credentials = owner_credentials
end
|