~ubuntu-branches/ubuntu/natty/augeas/natty

« back to all changes in this revision

Viewing changes to tests/rec-hosts-add.rb

  • Committer: Bazaar Package Importer
  • Author(s): Raphaël Pinson
  • Date: 2011-02-24 09:32:22 UTC
  • mfrom: (1.2.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224093222-bfd4fkm6envek6ys
Tags: 0.8.0-0ubuntu1
* New upstream release.
* Remove obsolete ruby Build-Depend.
* Build PDF docs and add them to augeas-doc.
* Build-Depend on texlive-latex-base to build PDF docs.
* Install txt doc files in augeas-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Note that aliases must be set (to NULL here), otherwise the tree
2
 
# is not syntactically correct and can not be saved
3
 
commands="
4
 
ins 10000 before /files/etc/hosts/2
5
 
set /files/etc/hosts/10000/ipaddr 192.168.0.1
6
 
set /files/etc/hosts/10000/canonical pigiron.example.com
7
 
save
8
 
"
9
 
refresh=true
10
 
diff["/etc/hosts"] = <<TXT
11
 
--- /etc/hosts
12
 
+++ /etc/hosts.augnew
13
 
@@ -3,4 +3,5 @@
14
 
 127.0.0.1\tlocalhost.localdomain\tlocalhost galia.watzmann.net galia
15
 
 #172.31.122.254   granny.watzmann.net granny puppet
16
 
 #172.31.122.1     galia.watzmann.net galia
17
 
+192.168.0.1\tpigiron.example.com
18
 
 172.31.122.14   orange.watzmann.net orange
19
 
TXT