Class: Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/ssport/installer.rb

Class Method Summary collapse

Class Method Details

.runObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/ssport/installer.rb', line 6

def self.run
    puts "---------Bengin Install SS ------------".colorize(:yellow)

    script = %Q{
        if [ -x "$(command -v yum)" ]; then
            yum install python-setuptools && easy_install pip
        elif [ -x "$(command -v apt-get)" ]; then
            apt-get install python-pip 
        fi
        pip install shadowsocks
    }
    system script
end