Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create and document old and new console tools #138

Open
prioux opened this issue Jun 10, 2015 · 2 comments
Open

Create and document old and new console tools #138

prioux opened this issue Jun 10, 2015 · 2 comments
Assignees
Labels
Admin Features or bugs related to administrative features Documentation Enhancement Priority: Normal

Comments

@prioux
Copy link
Member

prioux commented Jun 10, 2015

We've got a bunch of utilities deployed, and utilities planned, that are worthwhile additions to the rails console environment. We need to document them in the wiki, and within the console. Some need rewriting.

Create new Bourreau status and control utility:

Will replace ALL of this within a curse-based interactive tool:

  • cycle_bb
  • bb_bash
  • Bourreau.console and Bourreau#console
  • ps_work
  • ps_bb

Interface will present:

  • list of Bourreau by name
  • one-keystroke selection/deselection of bourreaux to affect (by number?)
  • what operation(s) to perform (status. command, start, stop, start worker, stop workers etc)

Other utils:

  • do_log
  • no_log
  • cu
  • cp

New utils:

  • hl ("how long")
# scratch version
def hl
  s = Time.now
  r =yield
  f = Time.now
  puts r.inspect
  puts "Time taken: #{f-s}"
end
  • shl ("SQL how long")
# Todo: accept ActiveRecord::Relation in argument too
# Todo: show table in nice format like mysql shell does
def shl(sql)
  hl do 
    x=ActiveRecord::Base.connection.execute(sql)
    ([x.fields] + x.to_a).each do |r|
      puts r.inspect
    end
  end
end
@prioux prioux self-assigned this Jun 10, 2015
@prioux prioux added this to the 4.1.0 milestone Jun 10, 2015
@prioux prioux modified the milestones: 4.1.0, 4.2.0 Aug 13, 2015
@prioux prioux modified the milestones: 4.2.0, 4.3.0 Nov 3, 2015
@prioux
Copy link
Member Author

prioux commented Jan 25, 2016

80% done.

@prioux
Copy link
Member Author

prioux commented Jan 25, 2016

Document in Wiki.

@natacha-beck natacha-beck modified the milestones: 4.3.0, 4.4.0 Mar 16, 2016
@natacha-beck natacha-beck modified the milestones: 4.4.0, 4.5.0 May 31, 2016
@prioux prioux modified the milestones: 4.5.0, 4.6.0 Aug 18, 2016
@natacha-beck natacha-beck modified the milestones: 4.6.0, 4.7.0 Nov 21, 2016
@natacha-beck natacha-beck modified the milestones: 4.7.0, 4.6.0 Nov 21, 2016
@prioux prioux modified the milestones: 4.7.0, 5.1.0 Apr 24, 2017
@prioux prioux modified the milestones: 5.1.0, 5.2.0 Nov 16, 2018
@prioux prioux modified the milestones: 5.2.0, 5.3.0 Sep 16, 2019
@prioux prioux modified the milestones: 5.3.0, 5.4.0 Dec 11, 2019
@prioux prioux added the Admin Features or bugs related to administrative features label Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Features or bugs related to administrative features Documentation Enhancement Priority: Normal
Projects
None yet
Development

No branches or pull requests

2 participants