lib/wire/resource/fig_adapter.rb
# returns the container ids of currently running containers
# as [Array] of ids
returns the container ids of currently running containers
as [Array] of ids
returns the container ids of currently running containers as [ Array ] of ids
def up_ids
        with_fig(%w(ps -q)) do |exec_obj|
          exec_obj.run
          re = Regexp.new '^[0-9a-zA-Z]+'
          res = []
          exec_obj.stdout.split("\n").each do |line|
            next unless line.match(re)
            res << line.chomp.strip
          end
          return res
        end
        nil
      end
def up_ids with_fig ( %w( ps -q ) ) do | exec_obj | exec_obj . run re = Regexp . new '^[0-9a-zA-Z]+' res = [ ] exec_obj . stdout . split ( "\n" ) . each do | line | next unless line . match ( re ) res << line . chomp . strip end return res end nil end
returns the container ids of currently running containers
as [Array] of ids
returns the container ids of currently running containers as [ Array ] of ids
# parse stdout..