orca-pip 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cdf3bc39f3e3a50a9e6d47bd66e5809b04212ea8
4
+ data.tar.gz: 30e78688988b7106a3e2a58e1863bad0c9bf0c70
5
+ SHA512:
6
+ metadata.gz: 4d3a5f005b5aacb7842836a1f2a225c735079433deb1348ebc3b233a888b2304becb8ce58e69b1bbb1ac1aebc1da7e8d090fc164c20fddce2bf2f82369e07748
7
+ data.tar.gz: 49db6dc111557b6fd6d30f138b1a14909a27c41435175fa5297a1e74a4669734188722f5bdd7269c0e2dc7259a4be879b7836008acc1ba7914fd7a6d334200c2
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ .DS_Store
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2014 Nicholas Kostelnik
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ Orca Python Pip Extension
2
+ ====
3
+
4
+ Adds Pip package support to Orca
@@ -0,0 +1,31 @@
1
+ Orca.extension do
2
+
3
+ module_function
4
+ def pip_package(pkg_name)
5
+ pip_name = pkg_name
6
+ package pkg_name do
7
+ depends_on('pip')
8
+ validate { trigger('pip:exists', pip_name) }
9
+ apply do
10
+ trigger('pip:install', pip_name)
11
+ end
12
+ remove { trigger('pip:uninstall', pip_name) }
13
+ end
14
+ end
15
+
16
+ package 'pip' do
17
+ action 'install' do |package_name|
18
+ sudo "pip install #{package_name}"
19
+ end
20
+
21
+ action 'exists' do |package_name|
22
+ pip_info = run("pip freeze")
23
+ pip_info =~ /#{package_name}/
24
+ end
25
+
26
+ validate do |package_name|
27
+ trigger('pip:exists', "#{package_name}")
28
+ end
29
+ end
30
+
31
+ end
data/orca-pip.gemspec ADDED
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.authors = ["Nicholas Kostelnik"]
3
+ gem.email = ["nkostelnik@gmail.com"]
4
+ gem.description = %q{Adds Python Pip package support to Orca}
5
+ gem.summary = %q{Python Pip extension for Orca}
6
+ gem.homepage = "https://github.com/nkostelnik/orca-pip"
7
+ gem.license = "MIT"
8
+ gem.files = `git ls-files`.split($\)
9
+ gem.name = "orca-pip"
10
+ gem.require_paths = ["lib"]
11
+ gem.version = '0.1.0'
12
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: orca-pip
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nicholas Kostelnik
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Adds Python Pip package support to Orca
14
+ email:
15
+ - nkostelnik@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - LICENSE
22
+ - README.md
23
+ - lib/orca/extensions/pip.rb
24
+ - orca-pip.gemspec
25
+ homepage: https://github.com/nkostelnik/orca-pip
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.2.2
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Python Pip extension for Orca
49
+ test_files: []