├── .gitignore ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── exe └── koma ├── koma.gemspec ├── lib ├── koma.rb └── koma │ ├── backend.rb │ ├── backend │ ├── base.rb │ ├── exec.rb │ └── ssh.rb │ ├── cli.rb │ ├── error.rb │ ├── ext.rb │ ├── ext │ └── specinfra │ │ ├── command │ │ └── redhat │ │ │ ├── base │ │ │ └── inventory.rb │ │ │ └── v7 │ │ │ └── inventory.rb │ │ └── host_inventory │ │ ├── base.rb │ │ ├── package.rb │ │ ├── parser.rb │ │ ├── parser │ │ ├── base.rb │ │ ├── base │ │ │ ├── package.rb │ │ │ └── service.rb │ │ ├── linux.rb │ │ ├── linux │ │ │ ├── base.rb │ │ │ └── base │ │ │ │ ├── package.rb │ │ │ │ └── service.rb │ │ ├── redhat.rb │ │ └── redhat │ │ │ ├── base.rb │ │ │ ├── base │ │ │ ├── package.rb │ │ │ └── service.rb │ │ │ ├── v7.rb │ │ │ └── v7 │ │ │ └── service.rb │ │ ├── parser_factory.rb │ │ └── service.rb │ ├── host_inventory.rb │ └── version.rb ├── spec ├── koma_spec.rb ├── spec_helper.rb └── specinfra │ └── host_inventory │ └── redhat │ ├── base │ ├── package_spec.rb │ └── service_spec.rb │ └── v7 │ └── service_spec.rb └── stdout_sample.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/bin/setup -------------------------------------------------------------------------------- /exe/koma: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'koma' 4 | 5 | Koma::CLI.start 6 | -------------------------------------------------------------------------------- /koma.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/koma.gemspec -------------------------------------------------------------------------------- /lib/koma.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma.rb -------------------------------------------------------------------------------- /lib/koma/backend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/backend.rb -------------------------------------------------------------------------------- /lib/koma/backend/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/backend/base.rb -------------------------------------------------------------------------------- /lib/koma/backend/exec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/backend/exec.rb -------------------------------------------------------------------------------- /lib/koma/backend/ssh.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/backend/ssh.rb -------------------------------------------------------------------------------- /lib/koma/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/cli.rb -------------------------------------------------------------------------------- /lib/koma/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/error.rb -------------------------------------------------------------------------------- /lib/koma/ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/command/redhat/base/inventory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/command/redhat/base/inventory.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/command/redhat/v7/inventory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/command/redhat/v7/inventory.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/base.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/package.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/package.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/base.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/base/package.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/base/package.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/base/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/base/service.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/linux.rb: -------------------------------------------------------------------------------- 1 | class Specinfra::HostInventory::Parser::Linux; end 2 | -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/linux/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/linux/base.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/linux/base/package.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/linux/base/package.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/linux/base/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/linux/base/service.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat.rb: -------------------------------------------------------------------------------- 1 | class Specinfra::HostInventory::Parser::Redhat;end 2 | 3 | -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat/base.rb: -------------------------------------------------------------------------------- 1 | class Specinfra::HostInventory::Parser::Redhat::Base;end 2 | 3 | -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat/base/package.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/redhat/base/package.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat/base/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/redhat/base/service.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat/v7.rb: -------------------------------------------------------------------------------- 1 | class Specinfra::HostInventory::Parser::Redhat::V7;end 2 | -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser/redhat/v7/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser/redhat/v7/service.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/parser_factory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/parser_factory.rb -------------------------------------------------------------------------------- /lib/koma/ext/specinfra/host_inventory/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/ext/specinfra/host_inventory/service.rb -------------------------------------------------------------------------------- /lib/koma/host_inventory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/lib/koma/host_inventory.rb -------------------------------------------------------------------------------- /lib/koma/version.rb: -------------------------------------------------------------------------------- 1 | module Koma 2 | VERSION = '0.17.0' 3 | end 4 | -------------------------------------------------------------------------------- /spec/koma_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/spec/koma_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) 2 | require 'koma' 3 | set :backend, :exec 4 | -------------------------------------------------------------------------------- /spec/specinfra/host_inventory/redhat/base/package_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/spec/specinfra/host_inventory/redhat/base/package_spec.rb -------------------------------------------------------------------------------- /spec/specinfra/host_inventory/redhat/base/service_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/spec/specinfra/host_inventory/redhat/base/service_spec.rb -------------------------------------------------------------------------------- /spec/specinfra/host_inventory/redhat/v7/service_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/spec/specinfra/host_inventory/redhat/v7/service_spec.rb -------------------------------------------------------------------------------- /stdout_sample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k1LoW/koma/HEAD/stdout_sample.json --------------------------------------------------------------------------------