Permalink
Browse files

Fixing environments output that was misleading

  • Loading branch information...
1 parent 65e8dea commit 009c1460b46e22b109614c756df0dbfd4e55ea57 @nibalizer committed Mar 12, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 puppetsubsync
View
@@ -74,8 +74,8 @@ class PuppetSync
puts "| Submodule : #{@options.submodule}"
puts "| Branch : #{@options.branch}"
puts "| Deploy To : #{deploy_directory(@options.submodule, @options.branch)}"
- puts "| environment : #{deploy_directory(@options.submodule, @options.branch)}"
- puts "| to test : puppet agent --noop --test --environment=#{deploy_directory(@options.submodule, @options.branch)}"
+ puts "| environment : #{env_directory(@options.submodule, @options.branch)}"
+ puts "| to test : puppet agent --noop --test --environment=#{env_directory(@options.submodule, @options.branch)}"
puts "| repository : #{@options.repository}"
puts "| delete branch" if @options.delete
@@ -196,6 +196,10 @@ class PuppetSync
return "#{@options.deploy}/#{submodule.gsub("-","_")}_#{branch}"
end
+ def env_directory(submodule, branch)
+ return "#{submodule.gsub("-","_")}_#{branch}"
+ end
+
def parsed_options?
opts = OptionParser.new

0 comments on commit 009c146

Please sign in to comment.