Class: PostyCli::Command::Domain
- Inherits:
-
Thor
- Object
- Thor
- PostyCli::Command::Domain
- Defined in:
- lib/posty_cli/command/domain.rb
Instance Method Summary collapse
Instance Method Details
#add(name) ⇒ Object
28 29 30 31 |
# File 'lib/posty_cli/command/domain.rb', line 28 def add(name) json = {name: name}.to_json PostyCli::Util::Domain.create(json, name) end |
#delete(name) ⇒ Object
50 51 52 53 54 |
# File 'lib/posty_cli/command/domain.rb', line 50 def delete(name) if(yes? "Are you sure you want to delete #{name}? Yes\\No") PostyCli::Util::Domain.delete(name) end end |