aho 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
+ SHA256:
3
+ metadata.gz: 68395a8675b36a6ef2e9f76ac6c42a5ef69fa08a27bb7da3f1ffca0ee6b3c0dc
4
+ data.tar.gz: 65a69f4031fea00f45ccb12e500430b2aada64404934405383c8fc5be7243331
5
+ SHA512:
6
+ metadata.gz: f22afb4971fb121cf7f9c0a9deb72e032c8867feb053519f75b51a2a2f6ac2b3cfb9f083b0af60ac36744412929ec81502c6955785d86a3c95b9d866d7ac7627
7
+ data.tar.gz: 0f9ce4932226b38aa32d3ae0419352d4839f939ff81ebf6de20757d32613f566b9e2e082e5e98ae67eac6738554cb3d9d32012722c14d01b3d537463cf420f32
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
data/.idea/aho.iml ADDED
@@ -0,0 +1,77 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="RVM: ruby-3.2.2" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-3.2.2) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.5.6, RVM: ruby-3.2.2) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.1, RVM: ruby-3.2.2) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.7.1, RVM: ruby-3.2.2) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.3, RVM: ruby-3.2.2) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.24.0, RVM: ruby-3.2.2) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.3.0.5, RVM: ruby-3.2.2) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="racc (v1.7.3, RVM: ruby-3.2.2) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.2.2) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.1.0, RVM: ruby-3.2.2) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.9.0, RVM: ruby-3.2.2) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.6, RVM: ruby-3.2.2) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.1, RVM: ruby-3.2.2) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.62.0, RVM: ruby-3.2.2) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.31.2, RVM: ruby-3.2.2) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.5.0, RVM: ruby-3.2.2) [gem]" level="application" />
35
+ </component>
36
+ <component name="RakeTasksCache">
37
+ <option name="myRootTask">
38
+ <RakeTaskImpl id="rake">
39
+ <subtasks>
40
+ <RakeTaskImpl description="Build aho-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
41
+ <RakeTaskImpl id="build">
42
+ <subtasks>
43
+ <RakeTaskImpl description="Generate SHA512 checksum if aho-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
44
+ </subtasks>
45
+ </RakeTaskImpl>
46
+ <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
47
+ <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
48
+ <RakeTaskImpl description="Build and install aho-0.1.0.gem into system gems" fullCommand="install" id="install" />
49
+ <RakeTaskImpl id="install">
50
+ <subtasks>
51
+ <RakeTaskImpl description="Build and install aho-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
52
+ </subtasks>
53
+ </RakeTaskImpl>
54
+ <RakeTaskImpl description="Create tag v0.1.0 and build and push aho-0.1.0.gem to https://gitlab.datamart.ru" fullCommand="release[remote]" id="release[remote]" />
55
+ <RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
56
+ <RakeTaskImpl id="rubocop">
57
+ <subtasks>
58
+ <RakeTaskImpl description="Autocorrect RuboCop offenses (only when it's safe)" fullCommand="rubocop:autocorrect" id="autocorrect" />
59
+ <RakeTaskImpl description="Autocorrect RuboCop offenses (safe and unsafe)" fullCommand="rubocop:autocorrect_all" id="autocorrect_all" />
60
+ <RakeTaskImpl description="" fullCommand="rubocop:auto_correct" id="auto_correct" />
61
+ </subtasks>
62
+ </RakeTaskImpl>
63
+ <RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
64
+ <RakeTaskImpl description="" fullCommand="default" id="default" />
65
+ <RakeTaskImpl description="" fullCommand="release" id="release" />
66
+ <RakeTaskImpl id="release">
67
+ <subtasks>
68
+ <RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
69
+ <RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
70
+ <RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
71
+ </subtasks>
72
+ </RakeTaskImpl>
73
+ </subtasks>
74
+ </RakeTaskImpl>
75
+ </option>
76
+ </component>
77
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3 [global]" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/aho.iml" filepath="$PROJECT_DIR$/.idea/aho.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-03-10
4
+
5
+ - Initial release
data/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # Aho
2
+
3
+ Aho — агент для сбора данных с ресурсов для биллинга, мониторинга и аудита.
4
+
5
+ ## Установка
6
+
7
+ Для установки агента Aho выполните команду:
8
+
9
+ $ gem install aho
10
+
11
+ ## Использование
12
+
13
+ Для проверки установки выполните `aho`, в ответ должен быть ответ «Aho!»
14
+
15
+ $ aho
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/exe/aho ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "aho"
6
+
7
+ system "echo Aho!"
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aho
4
+ VERSION = "0.1.0"
5
+ end
data/lib/aho.rb ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "aho/version"
4
+
5
+ module Aho
6
+ class Error < StandardError; end
7
+
8
+ def self.root
9
+ File.dirname __dir__
10
+ end
11
+
12
+ def self.logs
13
+ File.join root, "logs"
14
+ end
15
+ end
data/sig/aho.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Aho
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aho
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Panasenkov A.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ description: Aho agent is responsible for collecting resource usage data of VM instances
28
+ on individual Compute nodes within an Datamart Platform Studio deployment.
29
+ email:
30
+ - aapanasenkov@gmail.com
31
+ executables:
32
+ - aho
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - ".idea/.gitignore"
37
+ - ".idea/aho.iml"
38
+ - ".idea/misc.xml"
39
+ - ".idea/modules.xml"
40
+ - ".idea/vcs.xml"
41
+ - ".rspec"
42
+ - ".rubocop.yml"
43
+ - ".ruby-version"
44
+ - CHANGELOG.md
45
+ - README.md
46
+ - Rakefile
47
+ - exe/aho
48
+ - lib/aho.rb
49
+ - lib/aho/version.rb
50
+ - sig/aho.rbs
51
+ homepage: https://datamart.ru/aho
52
+ licenses: []
53
+ metadata:
54
+ homepage_uri: https://datamart.ru/aho
55
+ source_code_uri: https://gitlab.datamart.ru/datamart/aho
56
+ changelog_uri: https://gitlab.datamart.ru/datamart/aho/CHANGELOG.md
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 3.0.0
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.5.6
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Aho agent for billing, monitoring and audit data from resources.
76
+ test_files: []