techinform 1.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4274be3b8e24e0825490e2ce619bfe27a70c8d66ac9416a9a2016455cd9f395c
4
+ data.tar.gz: e62047181a538d710f0cb1ec879ac2825c22e3dee645d6bc2f1fdb0ef63ec86f
5
+ SHA512:
6
+ metadata.gz: 5520983ad15422ac174afa0afbede86b93943db03d3e0179b69563122b0824cb8948bee2ec6fb6d98569443135bf4fbd525deddb776dfe72635d47e557e5de2d
7
+ data.tar.gz: 1684b3b213e26fc288dd38f76eea28e0266552189fbfcf842940f9b8e5bbcd36b944e6ca4a22474b1c421dc3a70a3b315f414be9e2a89196bc59bf64f776971e
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ techinform-*.gem
11
+ .idea
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at alexey.chernikov@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in techinform.gemspec
6
+ gemspec
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Techinform
2
+
3
+ Collection of console tools, useful for everyday tasks in Techinform company.
4
+
5
+ ## Installation
6
+
7
+ Install gem yourself as:
8
+
9
+ $ gem install techinform
10
+
11
+ ## Requirements
12
+
13
+ apt install gpg2 pv mysqldump bzip2 rsync
14
+
15
+ * mysqldump - for mysql database dumps
16
+ * gpg2 - backup encryption support
17
+ * bzip2 - backup compression support
18
+ * rsync - syncing backups
19
+
20
+ ## Configuration
21
+
22
+ All configuration is done via environment variables
23
+
24
+ Available variables:
25
+
26
+ DEBUG=true # Print debug information on commands run
27
+ GPGKEY=< email | key id > # Enables encryption and encrypt with specific public key via gpg2. gpg2 should be installed
28
+ USER=root # User for database access
29
+ PASSWORD=password # Password for database access
30
+
31
+ ## Usage
32
+
33
+ Available commands:
34
+
35
+ $ techinform help [COMMAND] # Describe available commands or one specific command
36
+ $ techinform restore [type] [filename] [dbname] # Restore database from backup
37
+
38
+ ## Development
39
+
40
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
+
42
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/alexey-chernikov/techinform. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
47
+
48
+ ## Code of Conduct
49
+
50
+ Everyone interacting in the Techinform project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/techinform/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "techinform"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/techinform ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "techinform"
4
+
5
+ Techinform::CLI.start(ARGV)
data/exe/ti ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "techinform"
4
+
5
+ Techinform::CLI.start(ARGV)
@@ -0,0 +1,121 @@
1
+ require 'date'
2
+
3
+ class Backup
4
+ DATE_FORMAT = '%Y-%m-%d-%H-%M'
5
+
6
+ def initialize compress: true, encrypt: nil
7
+ @compress = compress
8
+ @encrypt = encrypt.nil? ? !ENV['GPGKEY'].nil? : encrypt
9
+ raise "GPGKEY environment variable should be specified for encryption" if encrypt? && ENV['GPGKEY'].nil?
10
+ ensure_path
11
+ end
12
+
13
+ def compress?
14
+ @compress
15
+ end
16
+
17
+ def encrypt?
18
+ @encrypt
19
+ end
20
+
21
+ def debug?
22
+ ENV['DEBUG'] == 'true'
23
+ end
24
+
25
+ def backup_type
26
+ self.class.to_s.gsub('Backup', '').downcase
27
+ end
28
+
29
+ def filename
30
+ "#{backup_type}-#{DateTime.now.strftime(DATE_FORMAT)}.#{filename_extension}"
31
+ end
32
+
33
+ def filename_extension(base = 'tar')
34
+ if encrypt?
35
+ "#{base}.gpg"
36
+ else
37
+ if compress?
38
+ "#{base}.bz2"
39
+ else
40
+ base
41
+ end
42
+ end
43
+ end
44
+
45
+ # Main pipe, which generates data for backup
46
+ def backup_command
47
+ "echo Just text to backup"
48
+ end
49
+
50
+ def encrypt_compress_pipe_command
51
+ if encrypt?
52
+ "| gpg2 --encrypt #{"--compress-algo=bzip2" if compress?} --recipient=#{ENV['GPGKEY']}"
53
+ else
54
+ "| bzip2" if compress?
55
+ end
56
+ end
57
+
58
+ def output_command
59
+ "> #{filepath}"
60
+ end
61
+
62
+ def path
63
+ "/backups/#{backup_type}"
64
+ end
65
+
66
+ def filepath
67
+ "#{path}/#{filename}"
68
+ end
69
+
70
+ def ensure_path
71
+ `mkdir -p #{path}`
72
+ end
73
+
74
+ def get_datetime_from_filename filename
75
+ DateTime.strptime(filename.split('-')[2], DATE_FORMAT)
76
+ end
77
+
78
+ def print_info
79
+ puts "Run backup to #{filepath}..."
80
+ end
81
+
82
+ def run
83
+ print_info
84
+ command = "#{backup_command} #{encrypt_compress_pipe_command} #{output_command}"
85
+ puts "Command: #{command}" if debug?
86
+ output = `#{command}`
87
+ puts output unless output.empty?
88
+ end
89
+
90
+
91
+ def clean_files
92
+ result = {} # true - delete file, false - do not delete
93
+ months_taken = []
94
+ days_taken = []
95
+ files = Dir.entries(path) - ['.', '..']
96
+ files.each do |file|
97
+ datetime = get_datetime_from_filename(file)
98
+ day_id = datetime.strftime('%Y-%m-%d')
99
+ month_id = datetime.strftime('%Y-%m')
100
+ if datetime < (DateTime.now << 2) # 2 month ago
101
+ if datetime.day == 1 && !(months_taken.include? month_id)
102
+ result[file] = false
103
+ months_taken << month_id
104
+ else
105
+ result[file] = true
106
+ end
107
+ elsif datetime < DateTime.now - 14 # 2 weeks ago
108
+ if [1, 7, 14, 21].include?(datetime.day) && !(days_taken.include?(day_id))
109
+ result[file] = false
110
+ days_taken << day_id
111
+ else
112
+ result[file] = true
113
+ end
114
+ end
115
+ end
116
+
117
+ puts "Candidates to removal: #{result.select{|file, delete| delete }.keys.inspect}"
118
+ end
119
+ end
120
+
121
+
@@ -0,0 +1,57 @@
1
+ require_relative 'backup'
2
+
3
+ class DbBackup < Backup
4
+ attr_reader :password, :user, :database, :host
5
+
6
+ def initialize user: nil, database: nil, password: nil, compress: true, host: nil, encrypt: nil
7
+ super compress: compress, encrypt: encrypt
8
+ user = ENV['USER'] if user.nil?
9
+ password = ENV['PASSWORD'] if user.nil?
10
+ @password, @user, @database, @host = password, user, database, host
11
+ ensure_path unless database.nil?
12
+ end
13
+
14
+ def filename
15
+ "#{backup_type}-#{database}-#{DateTime.now.strftime(DATE_FORMAT)}.#{filename_extension('sql')}"
16
+ end
17
+
18
+ def path
19
+ "/backups/#{backup_type}/#{database}"
20
+ end
21
+
22
+ def filepath
23
+ "#{path}/#{filename}"
24
+ end
25
+
26
+ def ensure_path
27
+ `mkdir -p #{path}`
28
+ end
29
+
30
+ def clean_files
31
+ result = {} # true - delete file, false - do not delete
32
+ months_taken = []
33
+ days_taken = []
34
+ files = Dir.entries(path) - ['.', '..']
35
+ files.each do |file|
36
+ datetime = get_datetime_from_filename(file)
37
+ day_id = datetime.strftime('%Y-%m-%d')
38
+ month_id = datetime.strftime('%Y-%m')
39
+ if datetime < (DateTime.now << 2) # 1 month ago
40
+ if datetime.day == 1 && !(months_taken.include? month_id)
41
+ result[file] = false
42
+ months_taken << month_id
43
+ else
44
+ result[file] = true
45
+ end
46
+ elsif datetime < DateTime.now - 14 # 2 weeks ago
47
+ if [1, 7, 14, 21].include?(datetime.day) && !(days_taken.include?(day_id))
48
+ result[file] = false
49
+ days_taken << day_id
50
+ else
51
+ result[file] = true
52
+ end
53
+ elsif days_taken.includ
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,11 @@
1
+ require_relative 'backup'
2
+
3
+ class EtcBackup < Backup
4
+ def print_info
5
+ puts "Run etc backup to #{filepath}..."
6
+ end
7
+
8
+ def backup_command
9
+ 'tar -c /etc'
10
+ end
11
+ end
@@ -0,0 +1,16 @@
1
+ require_relative 'db_backup'
2
+
3
+ class MysqlBackup < DbBackup
4
+ def print_info
5
+ puts "Run mysql backup on #{database} to #{filepath}..."
6
+ end
7
+
8
+ def backup_command
9
+ "mysqldump -C #{"--password='#{password}'" if password} #{"-h #{host}" if host} #{"--user=#{user}" if user} #{database}"
10
+ end
11
+
12
+ def db_list
13
+ @db_list ||= `mysql #{"--password='#{password}'" if password} #{"-h #{host}" if host} #{"--user=#{user}" if user} -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema)"`.split
14
+ end
15
+ end
16
+
@@ -0,0 +1,15 @@
1
+ require_relative 'db_backup'
2
+
3
+ class PostgreBackup < DbBackup
4
+ def print_info
5
+ puts "Run postgre backup on #{database} to #{filepath}..."
6
+ end
7
+
8
+ def backup_command
9
+ "#{"PGPASSWORD=#{password}" if password} pg_dump --clean --if-exists --no-owner #{"--host=#{host}" if host} #{"--username=#{user}" if user} #{database}"
10
+ end
11
+
12
+ def db_list
13
+ @db_list ||= (`#{"PGPASSWORD=#{password}" if password} psql #{"--host=#{host}" if host} #{"--username=#{user}" if user} -t -c 'SELECT datname FROM pg_database WHERE datistemplate = false;'`.split.compact - ['root'])
14
+ end
15
+ end
@@ -0,0 +1,50 @@
1
+ require 'thor'
2
+ require_relative '../../lib/backup/mysql_backup'
3
+ require_relative '../../lib/backup/postgre_backup'
4
+ require_relative 'defaults'
5
+ require 'tempfile'
6
+
7
+ module Techinform
8
+ class BackupCommand < Thor
9
+ desc 'mysql [dbname | dbname1,dbname2,... | all] ', 'Backup mysql database/databases, or all databases in separate files'
10
+ def mysql(dbnames)
11
+ (dbnames == 'all' ? mysql_list : dbnames.split(',')).each do |db|
12
+ MysqlBackup.new(database: db).run
13
+ end
14
+ end
15
+
16
+ desc 'pg_list', 'List of postgres databases'
17
+ def mysql_list
18
+ dbs = MysqlBackup.new.db_list
19
+ puts "Available mysql databases: #{dbs.join(', ')}"
20
+ dbs
21
+ end
22
+
23
+ desc 'pg [dbname | dbname1,dbname2,... | all]', 'Backup postgres database/databases or all databases in separate files'
24
+ def pg(dbnames)
25
+ (dbnames == 'all' ? pg_list : dbnames.split(',')).each do |db|
26
+ PostgreBackup.new(database: db).run
27
+ end
28
+ end
29
+
30
+ desc 'pg_list', 'List of postgres databases'
31
+ def pg_list
32
+ dbs = PostgreBackup.new.db_list
33
+ puts "Available postgres databases: #{dbs.join(', ')}"
34
+ dbs
35
+ end
36
+
37
+ desc 'etc', 'Backup of /etc folder'
38
+ def etc
39
+ require_relative '../../lib/backup/etc_backup'
40
+ EtcBackup.new.run
41
+ end
42
+
43
+ desc 'sync [server] [type] [ipaddr | dnsname]', 'Sync backups from remote server'
44
+ def sync(server, type, ipaddr)
45
+ location = Techinform.backups_syncing_location(server, type)
46
+ `mkdir -p #{location}`
47
+ system("rsync -avz #{"--exclude-from=#{"#{File.dirname(__FILE__)}/sync/rails_exclude_files"}" if type == 'rails'} backup@#{ipaddr}::#{type} #{location}")
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,7 @@
1
+ module Techinform
2
+ BACKUPS_PREFIX = '/backups'
3
+
4
+ def self.backups_syncing_location(server, type)
5
+ "#{BACKUPS_PREFIX}/#{server}/#{type}"
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ require 'thor'
2
+
3
+ module Techinform
4
+ class Projects < Thor
5
+ desc 'list', 'List all projects'
6
+ def list
7
+ # Display only directories
8
+ puts `ls -F ~/projects/ | grep /`.gsub('/', '')
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ db/sphinx
2
+ tmp/
3
+ shared/bundle
4
+ shared/log
5
+ deploy/*/repo
@@ -0,0 +1,3 @@
1
+ module Techinform
2
+ VERSION = "1.1.0"
3
+ end
data/lib/techinform.rb ADDED
@@ -0,0 +1,47 @@
1
+ require 'techinform/version'
2
+ require 'techinform/projects'
3
+ require_relative 'techinform/backup'
4
+ require 'thor'
5
+
6
+ module Techinform
7
+ class CLI < Thor
8
+ desc 'restore [type] [absolute_filename or database to select file] [dbname]', 'Restore database from backup; if no absolute filename given, will present select menu to choose file'
9
+ def restore(type, filename, dbname)
10
+ require 'highline'
11
+ if !File.exist?(filename)
12
+ cli = HighLine.new
13
+ path = type == 'pg' ? PostgreBackup.new(database: filename).path : MysqlBackup.new(database: filename)
14
+ filename = "#{path}/#{cli.choose(*Dir.entries(path) - %w[. ..])}"
15
+ end
16
+ encrypted = filename.split('.').last == 'gpg'
17
+ if type == 'pg'
18
+ puts "Restoring postgres backup to database #{dbname}..."
19
+ if encrypted
20
+ `gpg2 --decrypt < #{filename} | pv --wait | psql #{dbname} > /dev/null`
21
+ else
22
+ `tar -xOf #{filename} | bunzip2 | pv | psql #{dbname} > /dev/null`
23
+ end
24
+ else
25
+ puts "Restoring mysql backup to database #{dbname}..."
26
+ if encrypted
27
+ `gpg2 --decrypt < #{filename} | pv --wait | mysql #{"-u#{ENV['USER']}" if !ENV['USER'].nil?} #{"-p#{ENV['PASSWORD']}" if !ENV['PASSWORD'].nil?} #{dbname}`
28
+ else
29
+ `tar -xOf #{filename} | bunzip2 | pv | mysql #{"-u#{ENV['USER']}" if !ENV['USER'].nil?} #{"-p#{ENV['PASSWORD']}" if !ENV['PASSWORD'].nil?} #{dbname}`
30
+ end
31
+ end
32
+ end
33
+
34
+ desc 'deploy [project]', 'Deploy specific project'
35
+ def deploy(project)
36
+ `cd ~/projects/#{project} && git pull origin master && bundle install && cap production deploy`
37
+ end
38
+
39
+ desc 'projects', 'Projects'
40
+ subcommand :projects, Techinform::Projects
41
+ desc 'backup', 'Backup'
42
+ subcommand :backup, Techinform::BackupCommand
43
+ end
44
+ end
45
+
46
+ #MysqlBackup.new(user: 'root', database: 'lakor').run
47
+ #PostgreBackup.new(user: 'alex', database: 'carmen').run
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "techinform/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'techinform'
8
+ spec.version = Techinform::VERSION
9
+ spec.authors = ['Alexey Chernikov']
10
+ spec.email = ['alexey.chernikov@gmail.com']
11
+
12
+ spec.summary = %q{Console tools, useful at Techinform}
13
+ spec.description = %q{Collection of console tools, which is useful for everyday work at Techinform.}
14
+ spec.homepage = 'https://techinform.pro'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.licenses = ['MIT']
24
+
25
+ spec.add_dependency 'thor', '~> 0.20'
26
+ spec.add_dependency 'highline', '~> 2.0'
27
+
28
+ spec.add_development_dependency 'bundler', '~> 1.15'
29
+ spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'minitest', '~> 5.0'
31
+ end
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: techinform
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexey Chernikov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.20'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.20'
27
+ - !ruby/object:Gem::Dependency
28
+ name: highline
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ description: Collection of console tools, which is useful for everyday work at Techinform.
84
+ email:
85
+ - alexey.chernikov@gmail.com
86
+ executables:
87
+ - techinform
88
+ - ti
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".ruby-version"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - exe/techinform
101
+ - exe/ti
102
+ - lib/backup/backup.rb
103
+ - lib/backup/db_backup.rb
104
+ - lib/backup/etc_backup.rb
105
+ - lib/backup/mysql_backup.rb
106
+ - lib/backup/postgre_backup.rb
107
+ - lib/techinform.rb
108
+ - lib/techinform/backup.rb
109
+ - lib/techinform/defaults.rb
110
+ - lib/techinform/projects.rb
111
+ - lib/techinform/sync/rails_exclude_files
112
+ - lib/techinform/version.rb
113
+ - techinform.gemspec
114
+ homepage: https://techinform.pro
115
+ licenses:
116
+ - MIT
117
+ metadata: {}
118
+ post_install_message:
119
+ rdoc_options: []
120
+ require_paths:
121
+ - lib
122
+ required_ruby_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ requirements: []
133
+ rubyforge_project:
134
+ rubygems_version: 2.7.7
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: Console tools, useful at Techinform
138
+ test_files: []