Sha256: f51fee55cffd2b9cb99d82adb7a4d013e10aafebc09efca5a3553130e87b03a8

Contents?: true

Size: 571 Bytes

Versions: 23

Compression:

Stored size: 571 Bytes

Contents

module Veewee
  module Provider
    module Vmfusion
      module BoxCommand
        # This function 'adds a share' the box based on the definition
        def add_share(share_name, share_path)
          shell_exec("#{(vmrun_cmd).shellescape} -T fusion addSharedFolder #{vmx_file_path.shellescape} '#{share_name}' #{::File.expand_path(share_path).shellescape}")
        end

        def add_share_from_defn
          definition.add_shares.each do |share_name, share_path|
            add_share(share_name, share_path)
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.5.0.alpha3 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.5.0.alpha2 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.5.0.alpha1 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.5.1 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.5 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.5.pre1 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.4 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.3 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.2 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.1 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.4.0 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.12 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.11 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.10 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.9 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-atlassian-0.3.11 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.7 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.6 lib/veewee/provider/vmfusion/box/add_share.rb
veewee-0.3.5 lib/veewee/provider/vmfusion/box/add_share.rb