File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ def perform
13
13
return if user . active?
14
14
refresh!
15
15
if activate_user? ( user )
16
- Rails . logger . debug ( "Activating user #{ username } " )
16
+ puts ( "Activating user #{ username } " )
17
17
user . activate!
18
18
Notifier . welcome_email ( username ) . deliver
19
- Rails . logger . debug ( "Welcome email sent #{ username } " )
19
+ puts ( "Welcome email sent #{ username } " )
20
20
end
21
21
end
22
22
@@ -25,4 +25,4 @@ def activate_user?(user)
25
25
always_activate
26
26
end
27
27
28
- end
28
+ end
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ def composite_images
45
45
end
46
46
47
47
def sh ( command )
48
- Rails . logger . info "GenerateTopUsersComposite: executing #{ command } "
48
+ puts ( "GenerateTopUsersComposite: executing #{ command } " )
49
49
system command
50
50
end
51
51
52
- end
52
+ end
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ class RefreshTimeline < Struct.new(:username)
6
6
def perform
7
7
user = User . with_username ( username )
8
8
Event . create_timeline_for ( user )
9
- Rails . logger . debug ( "Refreshed timeline #{ username } " )
9
+ puts ( "Refreshed timeline #{ username } " )
10
10
end
11
- end
11
+ end
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def refresh!
32
32
33
33
user . calculate_score!
34
34
35
- Rails . logger . debug ( "Refreshed user #{ @username } " )
35
+ puts ( "Refreshed user #{ @username } " )
36
36
ensure
37
37
user . touch ( :last_refresh_at )
38
38
user . destroy_github_cache
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class SeedGithubProtips < Struct.new(:username)
5
5
6
6
def perform
7
7
user = User . with_username ( username )
8
- Rails . logger . debug "Adding protips for #{ username } "
8
+ puts ( "Adding protips for #{ username } " )
9
9
user . build_github_proptips_fast
10
10
end
11
- end
11
+ end
You can’t perform that action at this time.
0 commit comments