focus_common 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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +5 -0
- data/README.md +5 -0
- data/Rakefile +1 -0
- data/focus_common.gemspec +20 -0
- data/lib/focus_common.rb +2 -0
- data/lib/focus_common/capistrano.rb +22 -0
- data/lib/focus_common/version.rb +4 -0
- metadata +53 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 87070b1cd6672b0cd25e6ca313c18317335215a3
|
|
4
|
+
data.tar.gz: f5525b48728784dc5745a32f06403b8a537628f0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2131129582da5f67c48da27f2b1663159dc9184be60965c06b6a3317123d8ed6db8cc1cdac929fcaa1d7fbda3179537eb190774ca36c4d0f6ed4cdda091d0efb
|
|
7
|
+
data.tar.gz: 42496fb9b0a5e03c9ef4b0e178d47b5606245a5410b934150c2d6dba4d6f042dfa50a2144c187450f3e5855a14096af32a81bcdf3cb561f68886d5c596fff576
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'focus_common/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'focus_common'
|
|
8
|
+
spec.version = FocusCommon::VERSION
|
|
9
|
+
spec.authors = ['linjunhalida']
|
|
10
|
+
spec.email = ['linjunhalida@gmail.com']
|
|
11
|
+
spec.summary = %q{Common library for Focus Solution Inc Rails projects}
|
|
12
|
+
spec.description = %q{Common library for Focus Solution Inc Rails projects}
|
|
13
|
+
spec.homepage = 'https://github.com/halida/focus_common'
|
|
14
|
+
spec.license = 'LGPL-3.0'
|
|
15
|
+
|
|
16
|
+
spec.required_ruby_version = '>= 1.9.3'
|
|
17
|
+
spec.files = `git ls-files`.split($/)
|
|
18
|
+
spec.require_paths = ['lib']
|
|
19
|
+
|
|
20
|
+
end
|
data/lib/focus_common.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
namespace :systemd do
|
|
2
|
+
|
|
3
|
+
[:start, :stop, :restart].each do |cmd|
|
|
4
|
+
task "app_#{cmd}" do
|
|
5
|
+
on roles(:app) do
|
|
6
|
+
within release_path do
|
|
7
|
+
execute "sudo systemctl #{cmd} rails_#{fetch(:application)}"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
task "sidekiq_#{cmd}" do
|
|
13
|
+
on roles(:app) do
|
|
14
|
+
within release_path do
|
|
15
|
+
execute "sudo systemctl #{cmd} sidekiq_#{fetch(:application)}"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
metadata
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: focus_common
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- linjunhalida
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Common library for Focus Solution Inc Rails projects
|
|
14
|
+
email:
|
|
15
|
+
- linjunhalida@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- ".gitignore"
|
|
21
|
+
- Gemfile
|
|
22
|
+
- LICENSE.txt
|
|
23
|
+
- README.md
|
|
24
|
+
- Rakefile
|
|
25
|
+
- focus_common.gemspec
|
|
26
|
+
- lib/focus_common.rb
|
|
27
|
+
- lib/focus_common/capistrano.rb
|
|
28
|
+
- lib/focus_common/version.rb
|
|
29
|
+
homepage: https://github.com/halida/focus_common
|
|
30
|
+
licenses:
|
|
31
|
+
- LGPL-3.0
|
|
32
|
+
metadata: {}
|
|
33
|
+
post_install_message:
|
|
34
|
+
rdoc_options: []
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 1.9.3
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
requirements: []
|
|
48
|
+
rubyforge_project:
|
|
49
|
+
rubygems_version: 2.5.2
|
|
50
|
+
signing_key:
|
|
51
|
+
specification_version: 4
|
|
52
|
+
summary: Common library for Focus Solution Inc Rails projects
|
|
53
|
+
test_files: []
|