capobvious 0.3.pre15 → 0.3.pre16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capobvious/recipes/main.rb +12 -1
- data/lib/capobvious/version.rb +1 -1
- metadata +6 -6
@@ -163,6 +163,17 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
163
163
|
|
164
164
|
|
165
165
|
namespace :install do
|
166
|
+
desc 'cap install:app APP=htop'
|
167
|
+
task :app do
|
168
|
+
#capture("which apt-nyaa").strip
|
169
|
+
|
170
|
+
if ENV.has_key?('APP')
|
171
|
+
run %{apt-nyaa cat #{ENV['APP']} | sed "s/sudo/#{sudo}/g" | bash}
|
172
|
+
else
|
173
|
+
logger.important "Please run with APP="
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
166
177
|
desc "Install apt-nyaa"
|
167
178
|
task :aptnyaa do
|
168
179
|
run "#{sudo} apt-get --assume-yes install wget > /dev/null 2>&1 && cd /usr/bin/ && #{sudo} wget -Nq https://raw.github.com/nyaa/UbuntuScript/master/apt-nyaa && #{sudo} chmod +x apt-nyaa"
|
@@ -178,7 +189,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
178
189
|
run "#{sudo} sysctl -w kernel.shmmax=#{bits}"
|
179
190
|
run "echo 'kernel.shmmax=#{bits}' | #{sudo} tee -a /etc/sysctl.conf"
|
180
191
|
else
|
181
|
-
|
192
|
+
logger.important "Please run with MAX="
|
182
193
|
end
|
183
194
|
end
|
184
195
|
end
|
data/lib/capobvious/version.rb
CHANGED
metadata
CHANGED
@@ -2,18 +2,16 @@
|
|
2
2
|
name: capobvious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 4
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.pre16
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dmitry Gruzd
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
prerelease: false
|
16
|
-
type: :runtime
|
17
15
|
name: capistrano
|
18
16
|
version_requirements: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
@@ -27,9 +25,9 @@ dependencies:
|
|
27
25
|
- - ! '>='
|
28
26
|
- !ruby/object:Gem::Version
|
29
27
|
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
prerelease: false
|
32
28
|
type: :runtime
|
29
|
+
prerelease: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
33
31
|
name: rvm-capistrano
|
34
32
|
version_requirements: !ruby/object:Gem::Requirement
|
35
33
|
none: false
|
@@ -43,6 +41,8 @@ dependencies:
|
|
43
41
|
- - ! '>='
|
44
42
|
- !ruby/object:Gem::Version
|
45
43
|
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
46
|
description: Capfile that we use every day
|
47
47
|
email:
|
48
48
|
- donotsendhere@gmail.com
|