# File lib/cft/commands/pack.rb, line 21 def execute(session, args) unless @tarball $stderr.puts "You must specify the name of the tarball to create" $stderr.puts opts return 1 end spath = session.path %x{tar -czf #{@tarball} -C #{File::dirname(spath)} #{File::basename(spath)} 2>&1} unless $?.success? $stderr.puts "Failed to create #{@tarball}: #{$?.exitstatus}" end return $?.exitstatus end