Style cleanup for new name option
This commit is contained in:
parent
afc02ed681
commit
50c0c487fb
|
@ -39,9 +39,6 @@ module VagrantPlugins
|
|||
if @args && args_valid?
|
||||
@args = @args.is_a?(Array) ? @args.map { |a| a.to_s } : @args.to_s
|
||||
end
|
||||
if not(@name.nil?) and not(@name.is_a?(String))
|
||||
@name = nil
|
||||
end
|
||||
end
|
||||
|
||||
def validate(machine)
|
||||
|
|
|
@ -65,9 +65,9 @@ module VagrantPlugins
|
|||
|
||||
comm.upload(path.to_s, config.upload_path)
|
||||
|
||||
if not(config.name.nil?)
|
||||
if config.name
|
||||
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
|
||||
script: "Name: #{config.name}"))
|
||||
script: "script: #{config.name}"))
|
||||
elsif config.path
|
||||
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
|
||||
script: path.to_s))
|
||||
|
@ -125,9 +125,9 @@ module VagrantPlugins
|
|||
command = "powershell #{shell_args.to_s} -file #{command}" if
|
||||
File.extname(exec_path).downcase == '.ps1'
|
||||
|
||||
if not(config.name.nil?)
|
||||
if config.name
|
||||
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
|
||||
script: "Name: #{config.name}"))
|
||||
script: "script: #{config.name}"))
|
||||
elsif config.path
|
||||
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.runningas",
|
||||
local: config.path.to_s, remote: exec_path))
|
||||
|
|
Loading…
Reference in New Issue