Sha256: 06543adf63c4c0e864189f6fb6de3454d83f25d72a9a9b83a9c59b95e8433e33

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

module RouterosGuestPlugin
    module Cap
      class ChangeHostName
        def self.change_host_name(machine, name)
          system("vagrant ssh #{machine.name} -- '" +
            ":if ([/system identity get name] != \"#{name}\") do={ /system identity set name=\"#{name}\" }'")
        end
      end
    end
  end
  

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-routeros-0.0.5 lib/guest/cap/change_host_name.rb
vagrant-routeros-0.0.4 lib/guest/cap/change_host_name.rb
vagrant-routeros-0.0.3 lib/guest/cap/change_host_name.rb
vagrant-routeros-0.0.2 lib/guest/cap/change_host_name.rb
vagrant-routeros-0.0.1 lib/guest/cap/change_host_name.rb