runcible 1.3.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/runcible.rb +0 -23
  4. data/lib/runcible/base.rb +0 -20
  5. data/lib/runcible/extensions/consumer.rb +0 -23
  6. data/lib/runcible/extensions/consumer_group.rb +0 -23
  7. data/lib/runcible/extensions/distribution.rb +0 -23
  8. data/lib/runcible/extensions/docker_image.rb +0 -23
  9. data/lib/runcible/extensions/errata.rb +0 -23
  10. data/lib/runcible/extensions/ostree_branch.rb +9 -0
  11. data/lib/runcible/extensions/package_category.rb +0 -23
  12. data/lib/runcible/extensions/package_group.rb +0 -23
  13. data/lib/runcible/extensions/puppet_module.rb +0 -23
  14. data/lib/runcible/extensions/python_package.rb +9 -0
  15. data/lib/runcible/extensions/repository.rb +0 -23
  16. data/lib/runcible/extensions/rpm.rb +0 -23
  17. data/lib/runcible/extensions/unit.rb +2 -27
  18. data/lib/runcible/extensions/yum_repo_metadata_file.rb +0 -23
  19. data/lib/runcible/instance.rb +0 -23
  20. data/lib/runcible/models/distributor.rb +0 -23
  21. data/lib/runcible/models/docker_distributor.rb +1 -24
  22. data/lib/runcible/models/docker_importer.rb +1 -25
  23. data/lib/runcible/models/export_distributor.rb +1 -24
  24. data/lib/runcible/models/importer.rb +8 -23
  25. data/lib/runcible/models/iso_distributor.rb +1 -24
  26. data/lib/runcible/models/iso_importer.rb +0 -27
  27. data/lib/runcible/models/nodes_http_distributor.rb +0 -23
  28. data/lib/runcible/models/ostree_distributor.rb +25 -0
  29. data/lib/runcible/models/ostree_importer.rb +22 -0
  30. data/lib/runcible/models/puppet_distributor.rb +0 -23
  31. data/lib/runcible/models/puppet_importer.rb +1 -24
  32. data/lib/runcible/models/puppet_install_distributor.rb +0 -23
  33. data/lib/runcible/models/python_distributor.rb +23 -0
  34. data/lib/runcible/models/python_importer.rb +22 -0
  35. data/lib/runcible/models/yum_clone_distributor.rb +0 -23
  36. data/lib/runcible/models/yum_distributor.rb +2 -25
  37. data/lib/runcible/models/yum_importer.rb +0 -29
  38. data/lib/runcible/resources/consumer.rb +0 -23
  39. data/lib/runcible/resources/consumer_group.rb +0 -23
  40. data/lib/runcible/resources/content.rb +0 -23
  41. data/lib/runcible/resources/event_notifier.rb +0 -23
  42. data/lib/runcible/resources/repository.rb +0 -23
  43. data/lib/runcible/resources/repository_group.rb +0 -23
  44. data/lib/runcible/resources/repository_schedule.rb +0 -23
  45. data/lib/runcible/resources/role.rb +0 -23
  46. data/lib/runcible/resources/task.rb +0 -23
  47. data/lib/runcible/resources/unit.rb +0 -23
  48. data/lib/runcible/resources/user.rb +0 -23
  49. data/lib/runcible/version.rb +1 -1
  50. metadata +9 -3
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  module Runcible
25
2
  class Instance
26
3
  # rubocop:disable Style/ClassVars
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2012 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
@@ -1,33 +1,10 @@
1
- # Copyright (c) 2014 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
27
4
  module Runcible
28
5
  module Models
29
6
  class DockerDistributor < Distributor
30
- #optional
7
+ #optional attributes
31
8
  attr_accessor 'docker_publish_directory', 'protected',
32
9
  'redirect_url', 'repo_registry_id'
33
10
 
@@ -1,34 +1,10 @@
1
- # Copyright (c) 2014 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  module Runcible
25
2
  module Models
26
3
  class DockerImporter < Importer
27
4
  ID = 'docker_importer'
28
5
  REPO_TYPE = 'docker-repo'
29
6
 
30
- attr_accessor 'feed', 'max_speed', 'max_downloads', 'upstream_name',
31
- 'proxy_port', 'proxy_password', 'proxy_username', 'mask_id'
7
+ attr_accessor 'upstream_name', 'mask_id'
32
8
 
33
9
  def id
34
10
  DockerImporter::ID
@@ -1,33 +1,10 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
27
4
  module Runcible
28
5
  module Models
29
6
  class ExportDistributor < Distributor
30
- #required
7
+ #required attributes
31
8
  attr_accessor 'http', 'https'
32
9
 
33
10
  # Instantiates a export distributor
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2012
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/core_ext/hash'
25
2
  require 'active_support/json'
26
3
 
@@ -29,6 +6,14 @@ module Runcible
29
6
  # Generic class to represent Pulp Importers
30
7
  # Child classes should supply id & config methods
31
8
  class Importer
9
+ # https://github.com/pulp/pulp/blob/2.7-testing/common/pulp/common/plugins/importer_constants.py
10
+ attr_accessor 'feed', 'validate',
11
+ 'ssl_ca_cert', 'ssl_validation', 'ssl_client_cert', 'ssl_client_key',
12
+ 'proxy_host', 'proxy_port', 'proxy_username', 'proxy_password',
13
+ 'basic_auth_username', 'basic_auth_password',
14
+ 'max_downloads', 'max_speed',
15
+ 'remove_missing', 'retain_old_count'
16
+
32
17
  def initialize(params = {})
33
18
  params.each { |k, v| send("#{k}=", v) }
34
19
  end
@@ -1,33 +1,10 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
27
4
  module Runcible
28
5
  module Models
29
6
  class IsoDistributor < Distributor
30
- #required
7
+ #required attributes
31
8
  attr_accessor 'serve_http', 'serve_https'
32
9
 
33
10
  # Instantiates an iso distributor
@@ -1,35 +1,8 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  module Runcible
25
2
  module Models
26
3
  class IsoImporter < Importer
27
4
  ID = 'iso_importer'
28
5
 
29
- attr_accessor 'feed', 'ssl_ca_cert', 'ssl_client_cert', 'ssl_client_key',
30
- 'proxy_url', 'proxy_port', 'proxy_pass', 'proxy_user',
31
- 'remove_missing_units', 'num_threads', 'max_speed'
32
-
33
6
  # Importer Type id
34
7
  #
35
8
  # @return [string]
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
@@ -0,0 +1,25 @@
1
+ require 'active_support/json'
2
+ require 'securerandom'
3
+
4
+ module Runcible
5
+ module Models
6
+ class OstreeDistributor < Distributor
7
+ attr_accessor 'ostree_publish_directory', 'relative_path'
8
+
9
+ def initialize(params = {})
10
+ super(params)
11
+ end
12
+
13
+ def self.type_id
14
+ 'ostree_web_distributor'
15
+ end
16
+
17
+ def config
18
+ to_ret = as_json
19
+ to_ret.delete('auto_publish')
20
+ to_ret.delete('id')
21
+ to_ret
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,22 @@
1
+ module Runcible
2
+ module Models
3
+ class OstreeImporter < Importer
4
+ ID = 'ostree_web_importer'
5
+ REPO_TYPE = 'OSTREE'
6
+
7
+ attr_accessor 'branches'
8
+
9
+ def id
10
+ OstreeImporter::ID
11
+ end
12
+
13
+ def repo_type
14
+ OstreeImporter::REPO_TYPE
15
+ end
16
+
17
+ def config
18
+ as_json
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3
 
@@ -1,33 +1,10 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  module Runcible
25
2
  module Models
26
3
  class PuppetImporter < Importer
27
4
  ID = 'puppet_importer'
28
5
  REPO_TYPE = 'puppet-repo'
29
6
 
30
- attr_accessor 'feed', 'queries', 'remove_missing'
7
+ attr_accessor 'queries'
31
8
 
32
9
  def id
33
10
  PuppetImporter::ID
@@ -1,26 +1,3 @@
1
- # Copyright (c) 2013 Red Hat Inc.
2
- #
3
- # MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
1
  require 'active_support/json'
25
2
  require 'securerandom'
26
3