Sha256: c34a41a866d099536da24c934f442858bb803759a256ca85db392d6f29589432
Contents?: true
Size: 935 Bytes
Versions: 1
Compression:
Stored size: 935 Bytes
Contents
require 'devinstall/utils' require 'devinstall/settings' module Provider module Local include Utils SETTINGS = { local: [:copy, :sudo], } def upload_sources(cfg, src, dst) config =Devinstall::Settings.instance copy_command=config.local[:copy] command("#{copy_command} #{src} #{dst}") unless src == dst end def download_file(cfg, file, local) config=Devinstall::Settings.instance copy_command=config.local[:copy] command("#{copy_command} #{cfg[:target]}/#{file.to_s} #{local}") end def upload_file(cfg, file, local) config=Devinstall::Settings.instance copy_command=config.local[:copy] command("#{copy_command} #{local}/#{file} #{cfg[:folder]}") end def exec_command(cfg, command) config=Devinstall::Settings.instance sudo=config.local[:sudo] command("#{sudo} #{command}") end end #Local end #Provider
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devinstall-1.2.2 | lib/devinstall/provider/provider_local.rb |