ngauthier-aptinstaller 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +4 -2
- data/TODO.markdown +0 -1
- data/VERSION.yml +1 -1
- data/lib/aptinstaller/aptinstaller.rb +6 -0
- metadata +1 -1
data/README.markdown
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
This gem installs packages through apt-get in a similar manner as geminstaller installs gems.
|
5
5
|
|
6
6
|
## Usage
|
7
|
-
aptinstaller [
|
7
|
+
aptinstaller [path/to/rails/project/root]
|
8
8
|
|
9
9
|
## Configuration
|
10
10
|
|
@@ -36,8 +36,10 @@ from boot.rb):
|
|
36
36
|
sudo gem install ngauthier-aptinstaller
|
37
37
|
|
38
38
|
### Cutting Edge
|
39
|
+
git clone git@github.com:ngauthier/aptinstaller.git aptinstaller
|
40
|
+
cd aptinstaller
|
39
41
|
rake gem
|
40
|
-
sudo gem install pkg/aptinstaller
|
42
|
+
sudo gem install pkg/aptinstaller
|
41
43
|
|
42
44
|
## Other Notes
|
43
45
|
This gem uses Jeweler. HighFive@technicalpickles!
|
data/TODO.markdown
CHANGED
data/VERSION.yml
CHANGED
@@ -21,6 +21,12 @@ class AptInstaller
|
|
21
21
|
rails_root ||= '.' # in case they pass in nil
|
22
22
|
config_yaml = self.read_yaml_file(File.join(rails_root, 'config', 'aptinstaller.yml'))
|
23
23
|
packages = self.detect_packages_to_install(config_yaml['packages'])
|
24
|
+
if `which apt-get`.size == 0
|
25
|
+
$stderr.write "I'm sorry, but we currently only support apt based package systems\n"
|
26
|
+
$stderr.write "You will have to install the packages yourself\n"
|
27
|
+
$stderr.flush
|
28
|
+
exit(1)
|
29
|
+
end
|
24
30
|
if packages.size > 0
|
25
31
|
exec("apt-get install #{packages.collect{|p| p['package'] || p['executable'] }.join(" ")}")
|
26
32
|
else
|