Sha256: 03d6f0680b9a630c10f02c5e89232e00508c273bcb7fe4862e764d7c18dcd19c

Contents?: true

Size: 599 Bytes

Versions: 16

Compression:

Stored size: 599 Bytes

Contents

module DevFlow
  class Ur < App

    def process!
      error "Not on develop trunk" unless @git.current_branch == 'develop'
      error "Only leader/moderator and supervisor can edit ROADMAP" unless i_have_power?
      #p @git.modified_files
      error "No change detected on #{@config[:roadmap]}" unless @git.modified_files.include? File.expand_path(@config[:roadmap])

      `git add .`
      `git commit -am 'update roadmap'`
      info "Push your change to the remote server"
      `git push #{@config[:git_remote]} develop` if @config[:git_remote]
    end

  end # class
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dev_flow-0.1.5 lib/dev_flow/commands/ur.rb
dev_flow-0.1.4 lib/dev_flow/commands/ur.rb
dev_flow-0.1.3 lib/dev_flow/commands/ur.rb
dev_flow-0.1.2 lib/dev_flow/commands/ur.rb
dev_flow-0.1.1 lib/dev_flow/commands/ur.rb
dev_flow-0.1.0 lib/dev_flow/commands/ur.rb
dev_flow-0.0.13 lib/dev_flow/commands/ur.rb
dev_flow-0.0.12 lib/dev_flow/commands/ur.rb
dev_flow-0.0.11 lib/dev_flow/commands/ur.rb
dev_flow-0.0.10 lib/dev_flow/commands/ur.rb
dev_flow-0.0.9 lib/dev_flow/commands/ur.rb
dev_flow-0.0.8 lib/dev_flow/commands/ur.rb
dev_flow-0.0.7 lib/dev_flow/commands/ur.rb
dev_flow-0.0.6 lib/dev_flow/commands/ur.rb
dev_flow-0.0.5 lib/dev_flow/commands/ur.rb
dev_flow-0.0.4 lib/dev_flow/commands/ur.rb