hammer_cli_sam 0.0.1 → 1.0.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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2FmZmE0ZjhiOTZjMTllZWM0ZmJhZmRkODk0NDI2OTZiZmIwZTAyMA==
4
+ NGQ3MzU4MzNkNjRmOTE4MTA3MmZkMmQ3MDdlMGUyMGJlMzljNjFkYw==
5
5
  data.tar.gz: !binary |-
6
- ODFjNmNhNTk0ODQyNDkzYTE3ZmQwM2Q2ZDZjYThmODE2MWFmNDIxNg==
6
+ MjJmOTQ5YTMwNTQ3NzY0YzFiZTMzMTQ0Njk0NDZjNTZjODI5M2M3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGE4MDI3NjA0NDNhZjMxZWEyNDBlYTBlNmM3OTIxYzZlZmYwMzBhN2RkNjU0
10
- Mzk4ODVhZTA5MTdjMDNmMjEyZjExYjJiMTk2MjU2NDY2NjYzZjQzNDU5NDlh
11
- MGMwYjFlZmM0N2ZjZmZjZTcyMjRhZGE1MWNkZWFjMTRhNTBkMzg=
9
+ ZTc5YjQ1Zjc4NTI0MGIzODUzMzdlMmM5NWI1YmM3MjkxODliNzk1YTgzZjZk
10
+ M2Q3Y2QzZmE3YTZmNTBmMjFhODBhMjZkNjk0NWEzZGJiZjU3MGY1MWJiZDA4
11
+ MGNmMGU5MWUwNGI1MDRkMDA0M2NlNWFlOGVjM2NlN2RmZmE2NDM=
12
12
  data.tar.gz: !binary |-
13
- Mzg0ZDc5NDFhNjZiOTIzOGNlZmIyMWM0NWNmNWM0YjlkMzBmZDhhNmZmZDU0
14
- MThiZDk3YTQwOTQ1OGQwM2I2MjI5NjNhY2M2NTAwYjIwMTRkMzUxZGRlMTcw
15
- NWViM2M5NTliNTk1YWY5MzdmYjlkNTFhMjY3ZjJjMjljZTUwNGM=
13
+ N2YzMTZjZGFjMDk2ODUzZTkyZTVhZGMxOTFmNDI0ZDAzNGFhYTU0MmJiOGU1
14
+ N2U3YmEwODNiYmNhMGYxZTUzYTQxNTUxNmQ4MjQ4YjhmODgzZjc4MWYwZTEy
15
+ NTVlNjQ0MzE4MzkzZGY1YjEwNzNlMzFlNjI2NTQzZmNiOWYzZGE=
@@ -16,6 +16,7 @@ module HammerCLISAM
16
16
  host
17
17
  hostgroup
18
18
  lifecycle-environment
19
+ location
19
20
  medium
20
21
  model
21
22
  os
@@ -39,9 +40,10 @@ module HammerCLISAM
39
40
 
40
41
  require 'hammer_cli_sam/activation_key'
41
42
  require 'hammer_cli_sam/content_host'
42
- require 'hammer_cli_sam/location'
43
+ require 'hammer_cli_sam/filter'
43
44
  require 'hammer_cli_sam/organization'
44
45
  require 'hammer_cli_sam/product'
45
46
  require 'hammer_cli_sam/repository'
47
+ require 'hammer_cli_sam/user'
46
48
 
47
49
  end
@@ -22,7 +22,7 @@ module HammerCLISAM
22
22
  class UpdateCommand < HammerCLIKatello::ContentHostCommand::UpdateCommand
23
23
  include HammerCLISAM::ExcludeOptions
24
24
 
25
- exclude_options(:environment, :content_view)
25
+ exclude_options(:environment, :content_view, :location)
26
26
  end
27
27
 
28
28
  end
@@ -0,0 +1,32 @@
1
+ module HammerCLISAM
2
+ HammerCLI::MainCommand.find_subcommand('filter').subcommand_class
3
+
4
+ module FilterCommand
5
+
6
+ class CreateCommand < HammerCLIForeman::Filter::CreateCommand
7
+ include HammerCLISAM::ExcludeOptions
8
+
9
+ exclude_options(:location)
10
+ end
11
+
12
+ class UpdateCommand < HammerCLIForeman::Filter::UpdateCommand
13
+ include HammerCLISAM::ExcludeOptions
14
+
15
+ exclude_options(:location)
16
+ end
17
+
18
+ end
19
+
20
+ HammerCLIForeman::Filter.subcommand!(
21
+ HammerCLIForeman::Filter::CreateCommand.command_name,
22
+ HammerCLIForeman::Filter::CreateCommand.desc,
23
+ HammerCLISAM::FilterCommand::CreateCommand
24
+ )
25
+
26
+ HammerCLIForeman::Filter.subcommand!(
27
+ HammerCLIForeman::Filter::UpdateCommand.command_name,
28
+ HammerCLIForeman::Filter::UpdateCommand.desc,
29
+ HammerCLISAM::FilterCommand::UpdateCommand
30
+ )
31
+
32
+ end
@@ -0,0 +1,44 @@
1
+ module HammerCLISAM
2
+ HammerCLI::MainCommand.find_subcommand('user').subcommand_class
3
+
4
+ module UserCommand
5
+
6
+ class ListCommand < HammerCLIForeman::User::ListCommand
7
+ include HammerCLISAM::ExcludeOptions
8
+
9
+ exclude_options(:location)
10
+ end
11
+
12
+ class CreateCommand < HammerCLIForeman::User::CreateCommand
13
+ include HammerCLISAM::ExcludeOptions
14
+
15
+ exclude_options(:location)
16
+ end
17
+
18
+ class UpdateCommand < HammerCLIForeman::User::UpdateCommand
19
+ include HammerCLISAM::ExcludeOptions
20
+
21
+ exclude_options(:location, :default_location)
22
+ end
23
+
24
+ end
25
+
26
+ HammerCLIForeman::User.subcommand!(
27
+ HammerCLIForeman::User::ListCommand.command_name,
28
+ HammerCLIForeman::User::ListCommand.desc,
29
+ HammerCLISAM::UserCommand::ListCommand
30
+ )
31
+
32
+ HammerCLIForeman::User.subcommand!(
33
+ HammerCLIForeman::User::CreateCommand.command_name,
34
+ HammerCLIForeman::User::CreateCommand.desc,
35
+ HammerCLISAM::UserCommand::CreateCommand
36
+ )
37
+
38
+ HammerCLIForeman::User.subcommand!(
39
+ HammerCLIForeman::User::UpdateCommand.command_name,
40
+ HammerCLIForeman::User::UpdateCommand.desc,
41
+ HammerCLISAM::UserCommand::UpdateCommand
42
+ )
43
+
44
+ end
@@ -1,7 +1,7 @@
1
1
  module HammerCLISAM
2
2
 
3
3
  def self.version
4
- @version ||= Gem::Version.new('0.0.1')
4
+ @version ||= Gem::Version.new('1.0.0')
5
5
  end
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_sam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-28 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_katello
@@ -74,23 +74,17 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
78
- - .rubocop.yml
79
- - .travis.yml
80
- - Gemfile
81
77
  - LICENSE
82
78
  - README.md
83
- - Rakefile
84
- - extra/commandtree.txt
85
- - hammer_cli_sam.gemspec
86
79
  - lib/hammer_cli_sam.rb
87
80
  - lib/hammer_cli_sam/activation_key.rb
88
81
  - lib/hammer_cli_sam/content_host.rb
89
82
  - lib/hammer_cli_sam/exclude_mixin.rb
90
- - lib/hammer_cli_sam/location.rb
83
+ - lib/hammer_cli_sam/filter.rb
91
84
  - lib/hammer_cli_sam/organization.rb
92
85
  - lib/hammer_cli_sam/product.rb
93
86
  - lib/hammer_cli_sam/repository.rb
87
+ - lib/hammer_cli_sam/user.rb
94
88
  - lib/hammer_cli_sam/version.rb
95
89
  homepage: http://github.com/Katello/hammer-cli-sam
96
90
  licenses:
@@ -117,4 +111,3 @@ signing_key:
117
111
  specification_version: 4
118
112
  summary: SAM commands for Hammer
119
113
  test_files: []
120
- has_rdoc:
data/.gitignore DELETED
@@ -1,26 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- coverage
6
- InstalledFiles
7
- lib/bundler/man
8
- pkg
9
- rdoc
10
- spec/reports
11
- test/tmp
12
- test/version_tmp
13
- tmp
14
- Gemfile.lock
15
- Gemfile.local
16
- rubocop.xml
17
-
18
- # YARD artifacts
19
- .yardoc
20
- _yardoc
21
- doc/
22
-
23
- # rvm
24
- .rvmrc
25
- .ruby-version
26
- .ruby-gemset
data/.rubocop.yml DELETED
@@ -1,75 +0,0 @@
1
- MethodLength:
2
- Description: 'Avoid methods longer than 30 lines of code.'
3
- Max: 30 # default is 10
4
-
5
- Documentation:
6
- Enabled: false
7
-
8
- StringLiterals:
9
- Enabled: false
10
-
11
- EmptyLinesAroundBody:
12
- Enabled: false
13
-
14
- HashSyntax:
15
- Enabled: false
16
-
17
- SpaceInsideHashLiteralBraces:
18
- Enabled: false
19
-
20
- Encoding:
21
- Enabled: false
22
-
23
- LineLength:
24
- Max: 100
25
-
26
- FormatString:
27
- Enabled: false # we use % for i18n
28
-
29
- IfUnlessModifier:
30
- Enabled: false
31
-
32
- Next:
33
- Enabled: false # don't force next over conditions
34
-
35
- MethodCalledOnDoEndBlock:
36
- Enabled: true
37
-
38
- LeadingCommentSpace:
39
- Enabled: false
40
-
41
- RescueModifier:
42
- Enabled: false
43
-
44
- AssignmentInCondition:
45
- Enabled: false
46
-
47
- AlignParameters:
48
- Enabled: false # don't care if parameters are not aligned
49
-
50
- AlignParameters:
51
- Enabled: false # don't care if parameters are not aligned
52
-
53
- WhileUntilModifier:
54
- Enabled: false
55
-
56
- ParenthesesAroundCondition:
57
- Enabled: false
58
-
59
- DotPosition:
60
- Enabled: false
61
-
62
- Lambda:
63
- Enabled: false # don't require -> for single line lambdas
64
-
65
- RedundantSelf:
66
- Enabled: false
67
-
68
- RedundantReturn:
69
- Enabled: false
70
-
71
- SingleLineBlockParams:
72
- Enabled: false
73
-
74
- FormatString:
75
- Enabled: false # we use % for i18n
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.1
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- # for generating i18n files, gettext > 3.0 dropped ruby 1.8 support
6
- gem 'gettext', '~> 2.0'
7
-
8
- # load local gemfile
9
- local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
10
- self.instance_eval(Bundler.read_file(local_gemfile)) if File.exist?(local_gemfile)
data/Rakefile DELETED
@@ -1,20 +0,0 @@
1
- require 'bundler/gem_tasks'
2
-
3
- begin
4
- require 'rubocop/rake_task'
5
- RuboCop::RakeTask.new
6
-
7
- desc "Runs Rubocop style checker with xml output for Jenkins"
8
- task 'rubocop:jenkins' do
9
- system("bundle exec rubocop \
10
- --require rubocop/formatter/checkstyle_formatter \
11
- --format Rubocop::Formatter::CheckstyleFormatter \
12
- --no-color --out rubocop.xml")
13
- end
14
- rescue => _
15
- puts "Rubocop not loaded."
16
- end
17
-
18
- task :default do
19
- Rake::Task['rubocop'].execute
20
- end
@@ -1,133 +0,0 @@
1
- hammer > shell
2
- hammer > console
3
- hammer > full-help
4
- hammer > command-tree
5
- hammer > auth
6
- hammer > auth > login
7
- hammer > auth > logout
8
- hammer > auth > status
9
- hammer > auth-source
10
- hammer > auth-source > ldap
11
- hammer > auth-source > ldap > list
12
- hammer > auth-source > ldap > info
13
- hammer > auth-source > ldap > create
14
- hammer > auth-source > ldap > delete
15
- hammer > auth-source > ldap > update
16
- hammer > filter
17
- hammer > filter > list
18
- hammer > filter > info
19
- hammer > filter > create
20
- hammer > filter > update
21
- hammer > filter > delete
22
- hammer > filter > available-permissions
23
- hammer > filter > available-resources
24
- hammer > location
25
- hammer > location > list
26
- hammer > location > info
27
- hammer > location > create
28
- hammer > location > update
29
- hammer > location > delete
30
- hammer > location > add-user
31
- hammer > location > remove-user
32
- hammer > location > add-organization
33
- hammer > location > remove-organization
34
- hammer > role
35
- hammer > role > list
36
- hammer > role > filters
37
- hammer > role > create
38
- hammer > role > update
39
- hammer > role > delete
40
- hammer > user
41
- hammer > user > list
42
- hammer > user > info
43
- hammer > user > create
44
- hammer > user > update
45
- hammer > user > delete
46
- hammer > user > add-role
47
- hammer > user > remove-role
48
- hammer > user-group
49
- hammer > user-group > list
50
- hammer > user-group > info
51
- hammer > user-group > create
52
- hammer > user-group > update
53
- hammer > user-group > delete
54
- hammer > user-group > add-role
55
- hammer > user-group > remove-role
56
- hammer > user-group > add-user
57
- hammer > user-group > remove-user
58
- hammer > user-group > add-user-group
59
- hammer > user-group > remove-user-group
60
- hammer > user-group > external
61
- hammer > user-group > external > list
62
- hammer > user-group > external > info
63
- hammer > user-group > external > refresh
64
- hammer > user-group > external > create
65
- hammer > user-group > external > update
66
- hammer > user-group > external > delete
67
- hammer > task
68
- hammer > task > progress
69
- hammer > activation-key
70
- hammer > activation-key > list
71
- hammer > activation-key > info
72
- hammer > activation-key > create
73
- hammer > activation-key > update
74
- hammer > activation-key > delete
75
- hammer > activation-key > subscriptions
76
- hammer > activation-key > add-subscription
77
- hammer > activation-key > remove-subscription
78
- hammer > activation-key > host-collections
79
- hammer > activation-key > add-host-collection
80
- hammer > activation-key > remove-host-collection
81
- hammer > organization
82
- hammer > organization > list
83
- hammer > organization > info
84
- hammer > organization > update
85
- hammer > organization > create
86
- hammer > organization > delete
87
- hammer > organization > add-user
88
- hammer > organization > remove-user
89
- hammer > ping
90
- hammer > product
91
- hammer > product > list
92
- hammer > product > info
93
- hammer > product > synchronize
94
- hammer > product > set-sync-plan
95
- hammer > product > remove-sync-plan
96
- hammer > repository
97
- hammer > repository > list
98
- hammer > repository > info
99
- hammer > repository > synchronize
100
- hammer > repository-set
101
- hammer > repository-set > list
102
- hammer > repository-set > info
103
- hammer > repository-set > available-repositories
104
- hammer > repository-set > enable
105
- hammer > repository-set > disable
106
- hammer > subscription
107
- hammer > subscription > list
108
- hammer > subscription > upload
109
- hammer > subscription > delete-manifest
110
- hammer > subscription > refresh-manifest
111
- hammer > subscription > manifest-history
112
- hammer > sync-plan
113
- hammer > sync-plan > list
114
- hammer > sync-plan > info
115
- hammer > sync-plan > create
116
- hammer > sync-plan > update
117
- hammer > sync-plan > delete
118
- hammer > host-collection
119
- hammer > host-collection > list
120
- hammer > host-collection > create
121
- hammer > host-collection > info
122
- hammer > host-collection > content-hosts
123
- hammer > host-collection > copy
124
- hammer > host-collection > update
125
- hammer > host-collection > delete
126
- hammer > host-collection > add-content-host
127
- hammer > host-collection > remove-content-host
128
- hammer > content-host
129
- hammer > content-host > list
130
- hammer > content-host > info
131
- hammer > content-host > update
132
- hammer > content-host > delete
133
- hammer > content-host > tasks
@@ -1,28 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
3
-
4
- require 'hammer_cli_sam/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.authors = ['Adam Price']
8
- spec.email = ['katello@lists.fedorahosted.org']
9
- spec.license = "GPL-3"
10
- spec.description = 'Hammer-CLI-SAM is a Hammer module which provides connectivity' \
11
- ' to a SAM server.'
12
- spec.summary = 'SAM commands for Hammer'
13
- spec.homepage = 'http://github.com/Katello/hammer-cli-sam'
14
-
15
- spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
16
-
17
- spec.test_files = `git ls-files -- {test,spec,features}/*`.split($INPUT_RECORD_SEPARATOR)
18
-
19
- spec.name = 'hammer_cli_sam'
20
- spec.require_paths = %w(lib)
21
- spec.version = HammerCLISAM.version
22
-
23
- spec.add_dependency 'hammer_cli_katello', '~> 0.0.6'
24
-
25
- spec.add_development_dependency 'rake'
26
- spec.add_development_dependency 'rubocop', '0.24.1'
27
- spec.add_development_dependency 'rubocop-checkstyle_formatter'
28
- end
@@ -1,26 +0,0 @@
1
- module HammerCLISAM
2
-
3
- commands = %w(
4
- add-hostgroup
5
- remove-hostgroup
6
- add-environment
7
- remove-environment
8
- add-domain
9
- remove-domain
10
- add-medium
11
- remove-medium
12
- add-subnet
13
- remove-subnet
14
- add-compute-resource
15
- remove-compute-resource
16
- add-smart-proxy
17
- remove-smart-proxy
18
- add-config-template
19
- remove-config-template
20
- )
21
-
22
- commands.each do |cmd|
23
- HammerCLI::MainCommand.find_subcommand('location').subcommand_class.remove_subcommand(cmd)
24
- end
25
-
26
- end