Created
September 20, 2015 13:23
-
-
Save masayuki038/cadfa2e9c45b498239b0 to your computer and use it in GitHub Desktop.
pryでSpecinfraを試す ref: http://qiita.com/masayuki038@github/items/e0b972df071a58d1a6b2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle show specinfra | |
/var/lib/gems/2.2.0/gems/specinfra-2.43.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pry | |
[1] pry(main)> require 'specinfra' | |
=> true | |
[2] pry(main)> require 'specinfra/helper/set' | |
=> true | |
[3] pry(main)> include Specinfra::Helper::Set | |
=> Object | |
[4] pry(main)> set :backend, :exec | |
=> :exec | |
[5] pry(main)> host_inventory['hostname'] | |
=> "82b2db5a2096" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment