Sha256: 4e980f5a295145b76782f50a389e4986c702bb00cd696742494834941482515e

Contents?: true

Size: 868 Bytes

Versions: 14

Compression:

Stored size: 868 Bytes

Contents

# @see http://docs.vagrantup.com/v2/provisioning/shell.html
class ConfigBuilder::Model::Provisioner::Shell < ConfigBuilder::Model::Base

  # @!attribute [rw] inline
  #   @return [String] The inline shell command to run
  def_model_attribute :inline

  # @!attribute [rw] path
  #   @return [String] The path to the shell script to run
  def_model_attribute :path

  # @!attribute [rw] args
  #   @return [String] A string acting as an argument vector to the command.
  def_model_attribute :args

  def to_proc
    Proc.new do |vm_config|
      vm_config.provision :shell do |shell_config|
        with_attr(:inline) { |val| shell_config.inline = val }
        with_attr(:path)   { |val| shell_config.path   = val }
        with_attr(:args)   { |val| shell_config.args   = val }
      end
    end
  end

  ConfigBuilder::Model::Provisioner.register('shell', self)
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
vagrant-config_builder-0.15.1 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.15.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.14.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.13.0 lib/config_builder/model/provisioner/shell.rb
vagrant-masonry-0.13.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.12.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.11.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.10.1 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.10.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.9.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.8.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.7.1 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.7.0 lib/config_builder/model/provisioner/shell.rb
vagrant-config_builder-0.6.0 lib/config_builder/model/provisioner/shell.rb