Skip to content

Commit

Permalink
Move executable out of ignored bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed May 1, 2022
1 parent acc25f1 commit 2420db1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
0 flipper → exe/flipper
100644 → 100755
File renamed without changes.
2 changes: 1 addition & 1 deletion flipper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
gem.homepage = 'https://github.com/jnunemaker/flipper'
gem.license = 'MIT'

gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
gem.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
gem.files = `git ls-files`.split("\n") - ignored_files + ['lib/flipper/version.rb']
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - ignored_test_files
gem.name = 'flipper'
Expand Down
5 changes: 2 additions & 3 deletions lib/flipper/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ class Base < Command
# Requiring this loads the application's configuration and classes.
RAILS_ENVIRONMENT_RB = File.expand_path("config/environment")

def initialize(**_)
super
def initialize(**args)
# Program is always flipper, no matter how it's invoked
self.program_name = 'flipper'
super program_name: 'flipper', **args

subcommand('enable', Flipper::CLI::Enable)
subcommand('disable', Flipper::CLI::Disable)
Expand Down

0 comments on commit 2420db1

Please sign in to comment.