Class: Chid::Commands::Installs::Postgres
- Inherits:
-
Chid::Command
- Object
- Chid::Command
- Chid::Commands::Installs::Postgres
- Defined in:
- lib/chid/commands/installs/postgres.rb
Constant Summary
Constants inherited from Chid::Command
Instance Attribute Summary
Attributes inherited from Chid::Command
Instance Method Summary collapse
Methods inherited from Chid::Command
command, help, #initialize, map_options_with_values, run
Constructor Details
This class inherits a constructor from Chid::Command
Instance Method Details
#run ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/chid/commands/installs/postgres.rb', line 24 def run puts "\nInstalling the Postgres..." ::ChidConfig.on_linux do system('sudo apt-get install postgresql postgresql-contrib') end ::ChidConfig.on_osx do system('brew install postgres') end puts "\nPostgres installed successfully" end |