Skip to content

Commit

Permalink
Revert "cli: add "amber exec" command for executing one-liners (#352) (
Browse files Browse the repository at this point in the history
…#371)" (#382)

This reverts commit 8dce363.
  • Loading branch information
elorest committed Nov 11, 2017
1 parent 3a55d2a commit af11eeb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 113 deletions.
57 changes: 0 additions & 57 deletions spec/amber/cli/commands/exec_spec.cr

This file was deleted.

4 changes: 4 additions & 0 deletions spec/amber/dsl/server_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require "../../../spec_helper"
module Amber
module DSL
describe Server do

describe "pipeline" do
context "generating a single ':custom' pipeline" do
server = Amber::Server.instance
Expand All @@ -25,6 +26,7 @@ module Amber
plugs.should_not be nil
(plugs.map(&.class).should eq expected) if plugs
end

end

context "generating a single pipeline with multiple calls" do
Expand Down Expand Up @@ -119,7 +121,9 @@ module Amber
(plugs.map(&.class).should eq expected) if plugs
end
end

end
end

end
end
53 changes: 0 additions & 53 deletions src/amber/cli/commands/exec.cr

This file was deleted.

1 change: 0 additions & 1 deletion src/amber/cli/templates/app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/.crystal/
/.shards/
/.vscode/
/tmp/
.env
.amber_secret_key
production.yml
Expand Down
2 changes: 1 addition & 1 deletion src/amber/scripts/environment_loader.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ str = String.build do |s|
s.puts %(@port_reuse = #{settings["port_reuse"]? == nil ? true : settings["port_reuse"]})
s.puts %(@process_count = #{settings["process_count"]? || 1})
s.puts %(@log = #{settings["log"]? || "::Logger.new(STDOUT)"}.tap{|l| l.level = #{settings["log_level"]? || "::Logger::INFO"}})
# s.puts %(@log.level = #{settings["log_level"]? || "::Logger::INFO"})
#s.puts %(@log.level = #{settings["log_level"]? || "::Logger::INFO"})
s.puts %(@color = #{settings["color"]? == nil ? true : settings["color"]})
s.puts %(@redis_url = "#{settings["redis_url"]? || "redis://localhost:6379"}")
s.puts %(@port = #{settings["port"]? || 3000})
Expand Down
2 changes: 1 addition & 1 deletion src/amber/server/configuration.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Amber
def self.instance
@@instance ||= new
end

# Configure should probably be deprecated in favor of settings.
def self.configure
with settings yield settings
Expand Down

0 comments on commit af11eeb

Please sign in to comment.