vagrant-guest-openwrt 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 065cdb326953afc335bebb015f186395e89edde7
4
- data.tar.gz: 47b6fb3daf72a2ba8a86bf9f02bacf274cbfa42d
3
+ metadata.gz: e19de37a5561f9efbac8c0e40b5d09dce9429aa7
4
+ data.tar.gz: c2ef4b7642c18fe8fb4b255189c486c9b5bd5c48
5
5
  SHA512:
6
- metadata.gz: 1576a07035076b1a02b2639d7aa371244e2d3cec6711f86ef6ae5dfdfa7ec79d55b6f66c9bb2ec82bc882d98ca81fef3985ac11a53f74c3292d9a27fbc1b8464
7
- data.tar.gz: ac8dc089701ff4b11255ab8b527f920d19b97b65dfcfa9d6e35b7d48a98ad20a78f34463cdd7c3ac478ce91b70a05e1a517ab6afcf2b1adf590369cb95591b4f
6
+ metadata.gz: b7ddd6f3a3d5ee80a8dfc57404d87fad23589e62c954c46196b8e96b5683f57601463bc5fb112ede6aea2563356aea29c40b92dcdac48eba396a27883714cca2
7
+ data.tar.gz: 6f6a521aee76c5bc9d3969b3f449c04587993970e846128190699615f46caf82bf45ec26902ef3ee747b4c7dc6a0ff21d73717cf4946d9df58b161587ebebbc3
data/.gitignore CHANGED
@@ -217,4 +217,5 @@ pip-log.txt
217
217
  #Mr Developer
218
218
  .mr.developer.cfg
219
219
 
220
- *.gem
220
+ *.gem
221
+ *.lock
@@ -2,3 +2,7 @@
2
2
 
3
3
  * Lets Go
4
4
 
5
+ === 0.0.2 / 2014-03-29
6
+
7
+ * Added Hostname Capability
8
+
@@ -5,12 +5,15 @@
5
5
  VAGRANTFILE_API_VERSION = "2"
6
6
 
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
- config.vm.box = "adam/openwrt-aa"
8
+ config.vm.box = "Adam/OpenWrt-AA"
9
9
  config.vm.guest = "openwrt"
10
10
  config.ssh.shell = "ash" # bash is the default, openwrt uses ash
11
11
  config.ssh.private_key_path = "vagrant.private.key"
12
12
  config.vm.synced_folder ".", "/vagrant", :disabled => true # no guest additions of vmware tools. No sharing
13
13
 
14
+ #Testing the plugin
15
+ config.vm.hostname="OpenWrtAA"
16
+
14
17
  #You can configure networks here for the Virtuliser, however the plugin has not implemented it for OpenWRT yet.
15
18
  #You will need to edit /etc/config/network manually
16
19
  end
@@ -3,7 +3,13 @@ module VagrantPlugins
3
3
  module Cap
4
4
  class ChangeHostName
5
5
  def self.change_host_name(machine, name)
6
- machine.ui.warn("hostname change not implemented in OpenWrt guest")
6
+ begin
7
+ machine.communicate.execute("sudo uci set system.@system[0].hostname=\"#{name}\"")
8
+ machine.communicate.execute("sudo uci commit")
9
+ rescue IOError
10
+ # Ignore, this probably means connection closed because it
11
+ # shut down.
12
+ end
7
13
  end
8
14
  end
9
15
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantOpenWrt
2
2
  module Version
3
- STRING="0.0.1"
3
+ STRING="0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-guest-openwrt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Mills
@@ -48,7 +48,6 @@ files:
48
48
  - .gitattributes
49
49
  - .gitignore
50
50
  - Gemfile
51
- - Gemfile.lock
52
51
  - History.txt
53
52
  - Manifest.txt
54
53
  - README.md
@@ -1,54 +0,0 @@
1
- GIT
2
- remote: https://github.com/mitchellh/vagrant.git
3
- revision: 6977e93ba98fd19112b1fed74dafb8619f581984
4
- tag: v1.5.1
5
- specs:
6
- vagrant (1.5.1)
7
- bundler (~> 1.5.2)
8
- childprocess (~> 0.5.0)
9
- erubis (~> 2.7.0)
10
- i18n (~> 0.6.0)
11
- listen (~> 2.4.0)
12
- log4r (~> 1.1.9, < 1.1.11)
13
- net-scp (~> 1.1.0)
14
- net-ssh (>= 2.6.6, < 2.8.0)
15
- rb-kqueue (~> 0.2.0)
16
- wdm (~> 0.1.0)
17
-
18
- PATH
19
- remote: .
20
- specs:
21
- vagrant-guest-openwrt (0.0.1)
22
-
23
- GEM
24
- remote: https://rubygems.org/
25
- specs:
26
- celluloid (0.15.2)
27
- timers (~> 1.1.0)
28
- childprocess (0.5.2)
29
- ffi (~> 1.0, >= 1.0.11)
30
- erubis (2.7.0)
31
- ffi (1.9.3-x86-mingw32)
32
- i18n (0.6.9)
33
- listen (2.4.1)
34
- celluloid (>= 0.15.2)
35
- rb-fsevent (>= 0.9.3)
36
- rb-inotify (>= 0.9)
37
- log4r (1.1.10)
38
- net-scp (1.1.2)
39
- net-ssh (>= 2.6.5)
40
- net-ssh (2.7.0)
41
- rb-fsevent (0.9.4)
42
- rb-inotify (0.9.3)
43
- ffi (>= 0.5.0)
44
- rb-kqueue (0.2.2)
45
- ffi (>= 0.5.0)
46
- timers (1.1.0)
47
- wdm (0.1.0)
48
-
49
- PLATFORMS
50
- x86-mingw32
51
-
52
- DEPENDENCIES
53
- vagrant!
54
- vagrant-guest-openwrt!