class Licensed::Commands::Environment::AppEnvironment
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/licensed/commands/environment.rb, line 9 def initialize(config) @config = config end
Public Instance Methods
enabled_source_types()
click to toggle source
# File lib/licensed/commands/environment.rb, line 13 def enabled_source_types config.sources.select { |s| s.enabled? }.map { |s| s.class.type } end
to_h()
click to toggle source
# File lib/licensed/commands/environment.rb, line 17 def to_h { "name" => config["name"], "source_path" => config.source_path, "cache_path" => config.cache_path, "sources" => enabled_source_types, "allowed" => config["allowed"], "ignored" => config["ignored"], "reviewed" => config["reviewed"], "version_strategy" => self.version_strategy, "root" => config.root } end