vagrant-openshift 2.0.10 → 3.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.asciidoc +9 -10
  3. data/lib/vagrant-openshift/action.rb +43 -31
  4. data/lib/vagrant-openshift/action/{build_openshift.rb → build_origin.rb} +4 -4
  5. data/lib/vagrant-openshift/action/{build_openshift_base_images.rb → build_origin_base_images.rb} +1 -1
  6. data/lib/vagrant-openshift/action/clone_upstream_repositories.rb +5 -5
  7. data/lib/vagrant-openshift/action/create_bare_repo_placeholders.rb +4 -4
  8. data/lib/vagrant-openshift/action/create_yum_repositories.rb +3 -1
  9. data/lib/vagrant-openshift/action/{download_artifacts_openshift.rb → download_artifacts_origin.rb} +3 -4
  10. data/lib/vagrant-openshift/action/download_artifacts_sti.rb +1 -1
  11. data/lib/vagrant-openshift/action/generate_template.rb +3 -5
  12. data/lib/vagrant-openshift/action/{install_openshift.rb → install_origin.rb} +1 -1
  13. data/lib/vagrant-openshift/action/{install_openshift_asset_dependencies.rb → install_origin_asset_dependencies.rb} +2 -2
  14. data/lib/vagrant-openshift/action/{install_openshift_base_dependencies.rb → install_origin_base_dependencies.rb} +15 -13
  15. data/lib/vagrant-openshift/action/{install_openshift_rhel7.rb → install_origin_rhel7.rb} +3 -4
  16. data/lib/vagrant-openshift/action/{local_openshift_checkout.rb → local_origin_checkout.rb} +2 -2
  17. data/lib/vagrant-openshift/action/{run_openshift_tests.rb → run_origin_tests.rb} +27 -3
  18. data/lib/vagrant-openshift/action/sync_local_repository.rb +8 -3
  19. data/lib/vagrant-openshift/command/{build_openshift.rb → build_origin.rb} +4 -4
  20. data/lib/vagrant-openshift/command/{build_openshift_base.rb → build_origin_base.rb} +4 -4
  21. data/lib/vagrant-openshift/command/{build_openshift_base_images.rb → build_origin_base_images.rb} +4 -4
  22. data/lib/vagrant-openshift/command/{install_openshift_assets_base.rb → download_artifacts_origin.rb} +4 -4
  23. data/lib/vagrant-openshift/command/download_artifacts_sti.rb +49 -0
  24. data/lib/vagrant-openshift/command/{install_openshift.rb → install_origin.rb} +4 -4
  25. data/lib/vagrant-openshift/command/install_origin_assets_base.rb +49 -0
  26. data/lib/vagrant-openshift/command/{local_openshift_setup.rb → local_origin_setup.rb} +5 -5
  27. data/lib/vagrant-openshift/command/origin_init.rb +4 -4
  28. data/lib/vagrant-openshift/command/{repo_sync_openshift.rb → repo_sync_origin.rb} +3 -3
  29. data/lib/vagrant-openshift/command/{test_openshift.rb → test_origin.rb} +12 -4
  30. data/lib/vagrant-openshift/command/{test_openshift_image.rb → test_origin_image.rb} +2 -2
  31. data/lib/vagrant-openshift/command/{try_restart_openshift.rb → try_restart_origin.rb} +4 -4
  32. data/lib/vagrant-openshift/plugin.rb +40 -35
  33. data/lib/vagrant-openshift/templates/command/init-openshift/box_info.yaml +25 -42
  34. data/lib/vagrant-openshift/version.rb +1 -1
  35. metadata +23 -22
  36. data/lib/vagrant-openshift/command/bootstrap_openshift.rb +0 -50
@@ -1,50 +0,0 @@
1
- #--
2
- # Copyright 2015 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #++
16
- require_relative '../action'
17
-
18
- module Vagrant
19
- module Openshift
20
- module Commands
21
- class BootstrapOpenshift < Vagrant.plugin(2, :command)
22
- include CommandHelper
23
-
24
- def self.synopsis
25
- 'Configures OpenShift with sample project "Turbo"'
26
- end
27
-
28
- def execute
29
- options = {}
30
- options[:clean] = false
31
-
32
- opts = OptionParser.new do |o|
33
- o.banner = 'Usage: vagrant bootstrap-openshift [vm-name]'
34
- o.separator ''
35
- end
36
-
37
- # Parse the options
38
- argv = parse_options(opts)
39
- return if !argv
40
-
41
- with_target_vms(argv, :reverse => true) do |machine|
42
- actions = Vagrant::Openshift::Action.bootstrap_openshift(options)
43
- @env.action_runner.run actions, {:machine => machine}
44
- 0
45
- end
46
- end
47
- end
48
- end
49
- end
50
- end