capi 0.0.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/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in capi.gemspec
4
+ gemspec
data/README ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/capi.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "capi/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "capi"
7
+ s.version = Capi::VERSION
8
+ s.authors = ["Mokevnin Kirill"]
9
+ s.email = ["mokevnin@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{capistrano tasks}
12
+ s.description = %q{capistrano tasks}
13
+
14
+ s.rubyforge_project = "capi"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ # s.add_runtime_dependency "rest-client"
24
+ end
@@ -0,0 +1,20 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ after "deploy:restart", "unicorn:restart"
3
+ namespace :unicorn do
4
+ desc 'unicorn start'
5
+ task :start do
6
+ run "cd #{deploy_to}/current && bundle exec unicorn_rails -c #{deploy_to}/current/config/unicorn.rb -E #{rails_env} -D"
7
+ end
8
+
9
+ desc 'unicorn stop'
10
+ task :stop do
11
+ run "kill -9 `cat #{deploy_to}/shared/pids/unicorn.pid`"
12
+ end
13
+
14
+ desc 'unicorn restart'
15
+ task :restart do
16
+ stop rescue nil
17
+ start
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,3 @@
1
+ module Capi
2
+ VERSION = "0.0.1"
3
+ end
data/lib/capi.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "capi/version"
2
+
3
+ module Capi
4
+ # Your code goes here...
5
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mokevnin Kirill
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-19 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: capistrano tasks
15
+ email:
16
+ - mokevnin@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - README
24
+ - Rakefile
25
+ - capi.gemspec
26
+ - lib/capi.rb
27
+ - lib/capi/unicorn.rb
28
+ - lib/capi/version.rb
29
+ homepage: ''
30
+ licenses: []
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project: capi
49
+ rubygems_version: 1.8.15
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: capistrano tasks
53
+ test_files: []