lib/taketo/constructs/command.rb in taketo-0.0.8 vs lib/taketo/constructs/command.rb in taketo-0.0.9
- old
+ new
@@ -11,14 +11,18 @@
def self.default
new(:default).tap { |cmd| cmd.command = "bash" }
end
def self.explicit_command(command_string)
- new(:explicit_command).tap { |cmd| cmd.command = command_string }
+ new(:explicit_command).tap { |cmd| cmd.command = command_string.to_s }
end
def render(server, options = {})
%Q[#{location(server, options)} #{environment_variables(server)} #{command}].strip.squeeze(" ")
+ end
+
+ def to_s
+ command.to_s
end
private
def location(server, options = {})