focus_common 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .idea
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-sidekiq.gemspec
4
+ gemspec
@@ -0,0 +1,5 @@
1
+ Copyright (c) linjunhalida@gmail.com
2
+
3
+ focus-common is an Open Source project licensed under the terms of
4
+ the LGPLv3 license. Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
5
+ for license text.
@@ -0,0 +1,5 @@
1
+ # focus_common
2
+
3
+ Common file for Focus solutions, Inc rails projects.
4
+
5
+
@@ -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
@@ -0,0 +1,2 @@
1
+ module FocusCommon
2
+ end
@@ -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
+
@@ -0,0 +1,4 @@
1
+ module FocusCommon
2
+ VERSION = '0.0.1'
3
+ end
4
+
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: []