def run
      if ref.nil?
        puts "That is not a valid shard reference."
        return
      end

      if Shard::Credentials.saved? && Shard::Credentials.valid?
        fork_shard
      else
        puts "You are not currently logged into Github."
        Shard::CLI::Config.run

        if Shard::Credentials.saved?
          run
        end
      end
    end
def run
      if ref.nil?
        puts "That is not a valid shard reference."
        return
      end

      if Shard::Credentials.saved? && Shard::Credentials.valid?
        fork_shard
      else
        puts "You are not currently logged into Github."
        Shard::CLI::Config.run

        if Shard::Credentials.saved?
          run
        end
      end
    end
Instance Methods