ngauthier-aptinstaller 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 [/full/path/to/rails/project/root]
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-x.y.z.gem
42
+ sudo gem install pkg/aptinstaller
41
43
 
42
44
  ## Other Notes
43
45
  This gem uses Jeweler. HighFive@technicalpickles!
data/TODO.markdown CHANGED
@@ -1,4 +1,3 @@
1
1
  # TODO
2
2
  * Allow version requirements
3
3
  * Allow flag for "custom installation" when a package needs to be built from source
4
- * Different messages for non-apt systems
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 3
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngauthier-aptinstaller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Gauthier