lib/vagrant-zones/action/import.rb in vagrant-zones-0.1.72 vs lib/vagrant-zones/action/import.rb in vagrant-zones-0.1.73
- old
+ new
@@ -19,11 +19,11 @@
@app = app
end
def validate_uuid_format(uuid)
uuid_regex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
- return true if uuid_regex.match?(uuid.to_s.downcase)
+ true if uuid_regex.match?(uuid.to_s.downcase)
end
def call(env)
@machine = env[:machine]
@executor = Executor::Exec.new
@@ -95,11 +95,11 @@
ui.clear_line
end
@app.call(env)
end
- def execute(*cmd, **opts, &block)
- @executor.execute(*cmd, **opts, &block)
+ def execute(...)
+ @executor.execute(...)
end
def check(uuid, env_ui)
execute(true, "curl --output /dev/null --silent -r 0-0 --fail #{@joyent_images_url}/#{uuid}")
env_ui.info(I18n.t('vagrant_zones.joyent_image_uuid_verified') + @joyent_images_url + uuid)