logcli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fd1b6872420f9e477da09618e3df36c1c40b55b6
4
+ data.tar.gz: 175049a04cbee70b8d9623fbeb9a1dfefc8bf57e
5
+ SHA512:
6
+ metadata.gz: 2da758a6aeb05ddf92bdd74594ecdcb0259d903922c051a5cdf4e6b4915f4b7474d4bb38a3223be036d044a5331c48e494a737c28d60e8265bd236538f67e42c
7
+ data.tar.gz: 1836136670258bc44f22b2cf560e42e28a65efbe82f13927a698e9db8b23951d580efe40b11c50f7c0380cf73192c255e4c9168c89425da13d7c8dfa1237f535
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .DS_Store
13
+ .idea/*
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.0
@@ -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 gingray.dev@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,8 @@
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 logcli.gemspec
6
+ gemspec
7
+
8
+ gem 'pry'
data/Gemfile.lock ADDED
@@ -0,0 +1,48 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ logcli (0.1.0)
5
+ net-scp (~> 1.2.1, >= 1.2.1)
6
+ net-ssh (~> 5.0.2, >= 5.0.2)
7
+ thor (~> 0.20.3)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ coderay (1.1.2)
13
+ diff-lcs (1.3)
14
+ method_source (0.9.0)
15
+ net-scp (1.2.1)
16
+ net-ssh (>= 2.6.5)
17
+ net-ssh (5.0.2)
18
+ pry (0.11.3)
19
+ coderay (~> 1.1.0)
20
+ method_source (~> 0.9.0)
21
+ rake (10.4.2)
22
+ rspec (3.8.0)
23
+ rspec-core (~> 3.8.0)
24
+ rspec-expectations (~> 3.8.0)
25
+ rspec-mocks (~> 3.8.0)
26
+ rspec-core (3.8.0)
27
+ rspec-support (~> 3.8.0)
28
+ rspec-expectations (3.8.2)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-mocks (3.8.0)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-support (3.8.0)
35
+ thor (0.20.3)
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ bundler (~> 1.16)
42
+ logcli!
43
+ pry
44
+ rake (~> 10.0)
45
+ rspec (~> 3.0)
46
+
47
+ BUNDLED WITH
48
+ 1.16.0
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 gingray
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Logcli
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/logcli`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'logcli'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install logcli
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/logcli. 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.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Logcli project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/logcli/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "logcli"
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/logcli ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "logcli"
4
+
5
+ Logcli::CLI.start
data/lib/cli.rb ADDED
@@ -0,0 +1,33 @@
1
+ require "thor"
2
+ require 'logger'
3
+ module Logcli
4
+ class CLI < Thor
5
+ desc "fetch", "fetch logs from remote host"
6
+ option :path, required: true, banner: '/home/app/logs'
7
+ option :grep, required: true, banner: 'user@example.com'
8
+ option :host, required: true, banner: '127.0.0.1'
9
+ option :user, required: true, banner: 'app'
10
+ option :local_path, banner: 'app'
11
+ option :secret_key
12
+
13
+ def fetch
14
+ params = Logcli::Params::Session.new options
15
+ ssh = Logcli::SSH.new params
16
+ grep = Logcli::Actions::Grep.new params.action_params
17
+ grep.call ssh
18
+ scp = Logcli::SCP.new params
19
+ download = Logcli::Actions::Download.new({remote_path: grep.tmp_path, local_path: params.local_path })
20
+ download.call scp
21
+ end
22
+
23
+ desc "extract_json", "extract json lines through file"
24
+ option :filenames, type: :array, required: true, banner: 'example1.log example2.log'
25
+ option :verify, banner: 'true'
26
+
27
+ def extract_json
28
+ params = Logcli::Params::Json.new options
29
+ json = Logcli::Actions::ExtractJson.new(params.parse_params)
30
+ json.call
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,22 @@
1
+ module Logcli
2
+ module Actions
3
+ class Download
4
+ attr_accessor :remote_path, :local_path
5
+ def initialize opts
6
+ @remote_path = opts.fetch(:remote_path)
7
+ @local_path = opts.fetch(:local_path)
8
+ end
9
+
10
+ def call scp
11
+ generate_local_path
12
+ scp.download(remote_path, (local_path || generate_local_path))
13
+ end
14
+
15
+ private
16
+
17
+ def generate_local_path
18
+ File.join Dir.pwd, File.basename(remote_path)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,37 @@
1
+ module Logcli
2
+ module Actions
3
+ class ExtractJson
4
+ attr_reader :filenames
5
+ def initialize opts
6
+ @filenames = opts.fetch(:filenames)
7
+ end
8
+
9
+ def call
10
+ filenames.each do |filename|
11
+ outfile = generate_out_filename filename
12
+ File.open outfile, 'w' do |out|
13
+ File.open(filename).each do |line|
14
+ out_line = process line
15
+ out.puts out_line if out_line
16
+ end
17
+ end
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def process line
24
+ match = line.match /(\{.*\})/
25
+ return nil unless match
26
+ match[1]
27
+ end
28
+
29
+ def generate_out_filename filename
30
+ dir = File.dirname(filename)
31
+ name = File.basename(filename, ".*")
32
+ ext= File.extname(filename)
33
+ File.join dir, "#{name}_json#{ext}"
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,33 @@
1
+ module Logcli
2
+ module Actions
3
+ class Grep
4
+ COMMAND = 'grep'.freeze
5
+ attr_accessor :grep, :path
6
+ attr_reader :tmp_path
7
+
8
+ def initialize opts
9
+ @grep = opts.fetch(:grep)
10
+ @path = opts.fetch(:path)
11
+ end
12
+
13
+ def call ssh
14
+ cmd = "#{COMMAND} -rni \"#{grep}\" #{path} > #{tmp_path}"
15
+ puts "[grep] start: [#{cmd}]"
16
+ ssh.execute! cmd
17
+ puts "[grep] finish: [#{cmd}]"
18
+ end
19
+
20
+ def tmp_path
21
+ @tmp_path ||= begin
22
+ filename = Logcli::Helper.tmp_filename grep
23
+ @tmp_path = "/tmp/#{filename}"
24
+ end
25
+ end
26
+
27
+ def self.call opts
28
+ grep = new opts
29
+ grep.call
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,8 @@
1
+ module Logcli
2
+ class Helper
3
+ def self.tmp_filename name=''
4
+ filepart = name.gsub(/[^A-Za-z0-9@_-]/i, '')
5
+ "grep_#{filepart}_#{Time.now.strftime('%d_%m_%Y')}.log"
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,20 @@
1
+ module Logcli
2
+ module Params
3
+ class Json
4
+ FILENAMES = :filenames
5
+ OPTS = [FILENAMES].freeze
6
+ attr_accessor(*OPTS)
7
+
8
+ def initialize opts
9
+ OPTS.each do |opt|
10
+ val = opts.fetch opt, nil
11
+ instance_variable_set "@#{opt}", val
12
+ end
13
+ end
14
+
15
+ def parse_params
16
+ { filenames: filenames }
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,33 @@
1
+ module Logcli
2
+ module Params
3
+ class Session
4
+ PATH = :path
5
+ GREP = :grep
6
+ HOST = :host
7
+ USER = :user
8
+ LOCAL_PATH = :local_path
9
+ SECRET_KEY = :secret_key
10
+ OPTS = [PATH, GREP, HOST, USER, SECRET_KEY, LOCAL_PATH].freeze
11
+ attr_accessor(*OPTS)
12
+
13
+ def initialize opts
14
+ OPTS.each do |opt|
15
+ val = opts.fetch opt, nil
16
+ instance_variable_set "@#{opt}", val
17
+ end
18
+ end
19
+
20
+ def ssh_args
21
+ [host, user, {config: true}]
22
+ end
23
+
24
+ def scp_args
25
+ [host, user, {config: true}]
26
+ end
27
+
28
+ def action_params
29
+ {grep: grep, path: path}
30
+ end
31
+ end
32
+ end
33
+ end
data/lib/logcli/scp.rb ADDED
@@ -0,0 +1,16 @@
1
+ module Logcli
2
+ class SCP
3
+ attr_accessor :params
4
+ def initialize params
5
+ @params = params
6
+ end
7
+
8
+ def download remote_path, local_dest
9
+ Net::SCP.start(*params.scp_args) do |scp|
10
+ scp.download remote_path, local_dest do |ch, name, sent, total|
11
+ puts "#{name}: #{sent}/#{total}"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
data/lib/logcli/ssh.rb ADDED
@@ -0,0 +1,16 @@
1
+ module Logcli
2
+ class SSH
3
+ attr_accessor :params
4
+ def initialize params
5
+ @params = params
6
+ end
7
+
8
+ def execute! command
9
+ result = ''
10
+ Net::SSH.start(*params.ssh_args) do |ssh|
11
+ result = ssh.exec! command
12
+ end
13
+ result
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module Logcli
2
+ VERSION = "0.1.0"
3
+ end
data/lib/logcli.rb ADDED
@@ -0,0 +1,17 @@
1
+ require "logcli/version"
2
+ require "logcli/version"
3
+ require "logcli/params/session"
4
+ require "logcli/params/json"
5
+ require "logcli/ssh"
6
+ require "logcli/scp"
7
+ require "logcli/helper"
8
+ require "logcli/actions/download"
9
+ require "logcli/actions/grep"
10
+ require "logcli/actions/extract_json"
11
+ require 'cli'
12
+ require 'net/ssh'
13
+ require 'net/scp'
14
+
15
+ module Logcli
16
+ # Your code goes here...
17
+ end
data/logcli.gemspec ADDED
@@ -0,0 +1,37 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "logcli/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "logcli"
8
+ spec.version = Logcli::VERSION
9
+ spec.authors = ["gingray"]
10
+ spec.email = ["gingray.dev@gmail.com"]
11
+
12
+ spec.summary = %q{log fetcher and remote retriveve files}
13
+ spec.description = %q{CLI utility for helping works with logs}
14
+ spec.homepage = "https://github.com/gingray/logcli"
15
+ spec.license = "MIT"
16
+
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
19
+ else
20
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
21
+ end
22
+
23
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
+ f.match(%r{^(test|spec|features)/})
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_runtime_dependency 'net-ssh', '~> 5.0.2', '>= 5.0.2'
31
+ spec.add_runtime_dependency 'net-scp', '~> 1.2.1', '>= 1.2.1'
32
+ spec.add_runtime_dependency 'thor', '~> 0.20.3'
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.16"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logcli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - gingray
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: net-ssh
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.2
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 5.0.2
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: net-scp
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 1.2.1
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.2.1
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 1.2.1
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.2.1
53
+ - !ruby/object:Gem::Dependency
54
+ name: thor
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: 0.20.3
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 0.20.3
67
+ - !ruby/object:Gem::Dependency
68
+ name: bundler
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '1.16'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.16'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '10.0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '10.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rspec
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '3.0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '3.0'
109
+ description: CLI utility for helping works with logs
110
+ email:
111
+ - gingray.dev@gmail.com
112
+ executables:
113
+ - logcli
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - ".gitignore"
118
+ - ".rspec"
119
+ - ".travis.yml"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - Gemfile.lock
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - bin/console
127
+ - bin/setup
128
+ - exe/logcli
129
+ - lib/cli.rb
130
+ - lib/logcli.rb
131
+ - lib/logcli/actions/download.rb
132
+ - lib/logcli/actions/extract_json.rb
133
+ - lib/logcli/actions/grep.rb
134
+ - lib/logcli/helper.rb
135
+ - lib/logcli/params/json.rb
136
+ - lib/logcli/params/session.rb
137
+ - lib/logcli/scp.rb
138
+ - lib/logcli/ssh.rb
139
+ - lib/logcli/version.rb
140
+ - logcli.gemspec
141
+ homepage: https://github.com/gingray/logcli
142
+ licenses:
143
+ - MIT
144
+ metadata:
145
+ allowed_push_host: https://rubygems.org
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 2.6.14
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: log fetcher and remote retriveve files
166
+ test_files: []