Sha256: e67e76dcff6056ac7375949c77cea8df924e9b3ba764d1dd8f9ca44a8f6c2feb

Contents?: true

Size: 1.57 KB

Versions: 8

Compression:

Stored size: 1.57 KB

Contents

#
# Copyright (C) 2013 Conjur Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
require 'conjur/authn'
require 'conjur/command/dsl_command'

class Conjur::Command::Script < Conjur::DSLCommand
  self.prefix = :script

  desc "Run a Conjur DSL script"
  arg_name "script"
  command :execute do |c|
    acting_as_option(c)
    
    c.desc "Load context from this config file, and save it when finished. The file permissions will be 0600 by default."
    c.arg_name "context"
    c.flag [:c, :context]
    
    c.action do |global_options,options,args|
      run_script args, options
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
conjur-cli-4.9.3 lib/conjur/command/script.rb
conjur-cli-4.8.0 lib/conjur/command/script.rb
conjur-cli-4.7.5 lib/conjur/command/script.rb
conjur-cli-4.7.4 lib/conjur/command/script.rb
conjur-cli-4.7.3 lib/conjur/command/script.rb
conjur-cli-4.7.2 lib/conjur/command/script.rb
conjur-cli-4.7.1 lib/conjur/command/script.rb
conjur-cli-4.7.0 lib/conjur/command/script.rb