diff options
author | elijah <elijah@riseup.net> | 2016-04-12 10:25:25 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-04-12 10:25:25 -0700 |
commit | 50980798983c9cf9b4d562a2a9279ef3ab3d25fc (patch) | |
tree | 2b7e2e6fcb9cca269c11bb77152eece3be7c6acf /lib/leap_cli/config/manager.rb | |
parent | 298ae98021443dabe98e6855436f24ad8ad12a99 (diff) |
move template() from manager to environment. closes #8026
Diffstat (limited to 'lib/leap_cli/config/manager.rb')
-rw-r--r-- | lib/leap_cli/config/manager.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb index 4ad8b71..ecc59f3 100644 --- a/lib/leap_cli/config/manager.rb +++ b/lib/leap_cli/config/manager.rb @@ -71,6 +71,9 @@ module LeapCli def common; env(default_environment).common; end def secrets; env(default_environment).secrets; end def nodes; env(default_environment).nodes; end + def template(*args) + self.env.template(*args) + end def default_environment LeapCli.leapfile.environment @@ -280,19 +283,6 @@ module LeapCli @connections ||= ConnectionList.new end - # - # Loads a json template file as a Hash (used only when creating a new node .json - # file for the first time). - # - def template(template) - path = Path.named_path([:template_config, template], Path.provider_base) - if File.exists?(path) - return load_json(path, Config::Object) - else - return nil - end - end - ## ## PRIVATE ## |