summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/exec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/indirector/exec.rb')
-rw-r--r--lib/puppet/indirector/exec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/puppet/indirector/exec.rb b/lib/puppet/indirector/exec.rb
index f8d863562..cf09ed379 100644
--- a/lib/puppet/indirector/exec.rb
+++ b/lib/puppet/indirector/exec.rb
@@ -25,14 +25,10 @@ class Puppet::Indirector::Exec < Puppet::Indirector::Terminus
external_command = command
# Make sure it's an arry
- unless external_command.is_a?(Array)
- raise Puppet::DevError, "Exec commands must be an array"
- end
+ raise Puppet::DevError, "Exec commands must be an array" unless external_command.is_a?(Array)
# Make sure it's fully qualified.
- unless external_command[0][0] == File::SEPARATOR[0]
- raise ArgumentError, "You must set the exec parameter to a fully qualified command"
- end
+ raise ArgumentError, "You must set the exec parameter to a fully qualified command" unless external_command[0][0] == File::SEPARATOR[0]
# Add our name to it.
external_command << name