summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-03-21 11:47:51 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-03-21 11:47:51 -0700
commit9c85d70c74d4eab64c5024c3858f30e6fe32dba9 (patch)
treeb9549ed4d85ecf3dbed8fb8bcdb01a012c0f841d
parent3c3c689fd5749d29b78a88af5855e8f2faf7898a (diff)
downloadpuppet-9c85d70c74d4eab64c5024c3858f30e6fe32dba9.tar.gz
puppet-9c85d70c74d4eab64c5024c3858f30e6fe32dba9.tar.xz
puppet-9c85d70c74d4eab64c5024c3858f30e6fe32dba9.zip
(#6785) Rename the --from option to --terminus.
Paired-With: Richard Crowley
-rw-r--r--README.markdown8
-rw-r--r--lib/puppet/application/indirection_base.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/README.markdown b/README.markdown
index 56d9c7a98..dd9dd5867 100644
--- a/README.markdown
+++ b/README.markdown
@@ -56,13 +56,13 @@ A simple case is looking at the local facts:
If you're on the server, you can look in that server's fact collection:
- $ puppet facts --mode master --vardir /tmp/foo --from yaml find localhost
+ $ puppet facts --mode master --vardir /tmp/foo --terminus yaml find localhost
Note that we're setting both the vardir and the 'mode', which switches from the default 'agent' mode to server mode (requires a patch in my branch).
If you'd prefer the data be outputted in json instead of yaml, well, you can do that, too:
- $ puppet find --mode master facts --vardir /tmp/foo --from yaml --format pson localhost
+ $ puppet find --mode master facts --vardir /tmp/foo --terminus yaml --format pson localhost
To test using it as an endpoint for compiling and retrieving catalogs from a remote server, (from my commit), try this:
@@ -73,11 +73,11 @@ To test using it as an endpoint for compiling and retrieving catalogs from a rem
$ sbin/puppetd --trace --debug --confdir /tmp/foo --vardir /tmp/foo --certname localhost --server localhost --test --report
# Terminal 3, actual testing
- $ puppet data --certname localhost --server localhost --mode master --confdir /tmp/foo --vardir /tmp/foo --trace --from rest catalog find localhost
+ $ puppet catalog find localhost --certname localhost --server localhost --mode master --confdir /tmp/foo --vardir /tmp/foo --trace --terminus rest
This compiles a test catalog (assuming that ~/bin/test.pp exists) and returns it. With the right auth setup, you can also get facts:
- $ puppet facts --certname localhost --server localhost --mode master --confdir /tmp/foo --vardir /tmp/foo --trace --from rest find localhost
+ $ puppet facts find localhost --certname localhost --server localhost --mode master --confdir /tmp/foo --vardir /tmp/foo --trace --terminus rest
Or use IRB to do the same thing:
diff --git a/lib/puppet/application/indirection_base.rb b/lib/puppet/application/indirection_base.rb
index e6d172ced..764098925 100644
--- a/lib/puppet/application/indirection_base.rb
+++ b/lib/puppet/application/indirection_base.rb
@@ -2,7 +2,7 @@ require 'puppet/application/interface_base'
require 'puppet/interface'
class Puppet::Application::IndirectionBase < Puppet::Application::InterfaceBase
- option("--from TERMINUS", "-f") do |arg|
+ option("--terminus TERMINUS") do |arg|
@from = arg
end