Skip to content

Commit

Permalink
Fix README to show how to pass task parameter for specific Perl version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwakwaversal committed Nov 12, 2015
1 parent 8b086cf commit 6a0e7ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
-----------------------------------------------------

0.02 2015-11-12
- Fix README to show how to pass task parameter for specific Perl version.

0.01 2015-11-11
- First release.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ include qw/Rex::Plenv::Base/;

# prepare holds root-specific commands that need running first
task prepare => sub {
Rex::Plenv::Base::prepare();
Rex::Plenv::Base::prepare(@_); # @_ required for Rex::Ext::ParamLookup
};

auth for => 'prepare' => user => 'root';

task setup => sub {
Rex::Plenv::Base::setup();
Rex::Plenv::Base::setup(@_); # @_ required for Rex::Ext::ParamLookup
};
```

Expand Down Expand Up @@ -57,6 +57,16 @@ Require:
Once all your dependencies are configured for the service, run `rexify
--resolve-deps` to bundle the module.

## Options

If you want to install a specific version of Perl, you can pass the optional
task parameter `--perl_version=5.20.0`.

```bash
ssh-copy-id someuser@yourhost.org
rex -H yourhost.org -u someuser setup --perl_version=5.22.0
```

# See also
* [Rex::NTP::Base](https://github.com/krimdomu/rex-ntp-base.git)
* [Rex::OS::Base](https://github.com/krimdomu/rex-os-base.git)
Expand Down

0 comments on commit 6a0e7ee

Please sign in to comment.