Skip to content

Commit

Permalink
Fixing environments output that was misleading
Browse files Browse the repository at this point in the history
  • Loading branch information
nibalizer committed Mar 12, 2012
1 parent 65e8dea commit 009c146
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions puppetsubsync
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 009c146

Please sign in to comment.