Class: Gitlab::Devops::Cli
- Inherits:
-
Object
- Object
- Gitlab::Devops::Cli
- Defined in:
- lib/gitlab/devops/cli.rb
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/gitlab/devops/cli.rb', line 6 def self.run(args) unless args.size == 1 puts 'Syntax: gitlab-devops your-gitlab-config.yml' exit(-1) end gitlab_config_file = args[0] p "file is #{gitlab_config_file}" Gitlab::Devops::Config.apply(YAML.load(IO.read(gitlab_config_file))) end |