Class: GcloudHosts::Options
- Inherits:
-
Object
- Object
- GcloudHosts::Options
- Defined in:
- lib/gcloud_hosts/options.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(args) ⇒ Options
Returns a new instance of Options.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/gcloud_hosts/options.rb', line 8 def initialize(args) = { gcloud: %x{ which gcloud 2>/dev/null }.to_s.strip, project: nil, network: nil, domain: nil, public: nil, exclude_public: false, file: '/etc/hosts', backup: nil, dry_run: false, delete: false, clear: false } parser.parse!(args) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/gcloud_hosts/options.rb', line 6 def end |